HTACCESS WORDPRESS | HTACCESS DEFAULT WORDPRESS

HTACCESS WORDPRESS | HTACCESS DEFAULT WORDPRESS

Recently I migrated all my websites from a dedicated server to  Liquid Web Managed WordPress hosting. Most of my websites are now WordPress installations using either Elegant Themes DIVI or StudioPress themes. I decided that as part of the migration with the help of Liquid Web support I would convert all my sites to use SSL/HTTPS. It turned out to be quite the endeavor. After the conversion the standard http version of the sites looked and worked fine while using the https prefix the sites were a mess. The content was there but it was not displayed properly. After a bit of troubleshooting we decided to rename the .htaccess file so it would be ignored by WordPress. A quick page refresh and the site appeared as it should. Problem temporarily solved.

htaccess WordPress

htaccess Default WordPress

.htaccess WordPress

When WordPress is installed a default WordPress htaccess is generated and placed in the site root. Life is good. However as time goes by it’s possible for many plugins to write to the .htaccess file. Naturally that also means errors can be introduced to the .htaccess file. If that’s not bad enough there is the human factor. The .htaccess can serve many purposes like blocking or redirecting ip addresses, disabling hot linking of images or a host of any other useful functions. Upon review my htaccess was filled with outdated and irrelevant code. Something in my WordPress .htaccess file was causing my the DIVI and StudioPress themes to break and not display correctly. Rather than waste time trying to find the exact culprit I decided it would be easier to start with a new default WordPress .htaccess file. Directions below

Click for WordPress htaccess File Download – upload to your site root with an ftp client. rename the file to .htaccess

How to Create a WordPress Default .htaccess File

A .htaccess file is a distributed configuration file that’s present not just in WordPress, but in all Apache web hostings. .htaccess files can be used to boost your website’s performance, security and usability. A few features that you can enable or disable using a .htaccess file include server signature, file caching, URL redirection, password protection and custom error pages.

WordPress installations may or may not contain the .htaccess file in the root directory, depending on your permalink structure; while a default ‘ugly’ permalink structure comes sans .htaccess, a pretty permalink structure auto creates a .htaccess file in your WordPress. In case you’re using default WordPress settings (read an ugly permalink structure), it is highly advisable to change it to a pretty permalink structure. Now assuming that you want to enable default pretty permalinks, create a new notepad file and rename it to .htaccess (not .htaccess.txt). Include the following basic code in the file:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

Save the changes and upload the file to your WordPress root directory using FTP.

Protect your .htaccess File

To protect your .htaccess file from external users and to tighten website security, it is recommended to add the following code to the .htaccess file:

<Files .htaccess>
order allow,deny
deny from all
</Files>

While making any modification to your .htaccess file, it is important to remember that even a tiny error in the .htaccess file can cause a major issue on your website, so much so you might even end up disabling your entire server with one simple typo. Hence, it is advisable to make a backup of your .htaccess file before making any changes to it. This way, if something goes wrong, you can always revert to the backup version of the file.

DIVI Remove Featured Image | Extra Remove Featured Image

It’s no secret Elegant Themes DIVI and Elegant Themes Extra are two of the best and most powerful and flexible WordPress themes available. That said no wordpress theme can be perfect for every situation and little tweaks and adjustments need to be made. The problem is the fix or adjustment  isnt always always obvious or built in the the Elegant Themes product. This page addresses two these items. By default both DIVI  and Extra place the featured image at the top of posts or in the case of Extra at the top of projects. I don like this.

Elegant themes DIVI Remove Featured Image from Posts

Removing featured images from DIVI posts is easy. In your dashboard select DIVI –> Theme Options –> General Tab –> Toggle the “Grab First Post Image” slider and the images will no longer appear on your posts. See Below

DIVI Grab First Post Image - Remove Featured Image- Hide Featured image in DIVI and EXTRA themes

Disable DIVI Grab First Post Image to Remove Featured Image

Elegant Themes Remove Featured Image from Projects

Unfortunately Elegant Themes has omitted the option to disable featured images from appearing at the top of EXTRA projects. To change this setting is still very easy with a little bit of custom CSS.

Elegant Themes Extra Remove Featured Image Projects

Elegant Themes Extra Hide Featured Image on Projects

In your dashboard select EXTRA –> Theme Options –> General Tab –> Scroll to the bottom and past the following CSS in the custom CSS field and save the change. The featured image will no longer be displayed at the top of the EXTRA projects.

.single-project .post-thumbnail{
display: none;
}

CHANGE DIVI BLOG READ MORE TEXT

CHANGE DIVI BLOG READ MORE TEXT

CHANGE DIVI BLOG READ MORE TEXT

I noticed a lot of readers of my blogs are not computer savvy and do not realize the “read more” hyperlink would bring them to the full content. A quick google search revealed the easist fix would be to change the wording to say “Read Full Post”. Below is the code to do just that. Navigate to Divi>Theme Options>Integration and add code to the “body ” field

<script type="text/javascript">
(function($) {
$(document).ready(function() {
var newVal = 'View Full Post';
$('.more-link').html( newVal );
});
})(jQuery);
</script>


Originally appeared here

CHANGE DIVI BLOG READ MORE TEXT


REMOVE ELEGANT THEMES BRANDING

REMOVE ELEGANT THEMES BRANDING

REMOVE ELEGANT THEMES BRANDING

REMOVE ELEGANT THEMES BRANDING – Many Elegant Themes DIVI users complain about the inability to remove the Elegant Themes branding from the footer in DIVI. I stumbled across the code below. Simply copy and paste it in your DIVI>Theme Options>Integration. Click “Enable Body Code” and paste  the code in the “Body” text field. It’s free and Easy.

<script type="text/javascript"> jQuery(document).ready(function(){ jQuery("#footer-info").text(' '); jQuery('<p id="footer-info">Copyright &copy;2016 <a href="http://yourcoolsite.com" >My Awesome Site</a>. All Rights Reserved.</p>').insertAfter("#footer-info"); }); </script>

REMOVE ELEGANT THEMES BRANDING

WORDPRESS PERMALINKS 404 ERROR

So your getting 404 errors on your wordpress blog. I too suffered this problem and the fix is quite simple. To fix this you need to add the mod_rewrite code shown below to your .htaccess file.

  • Chmod the .htaccess file to 666
  • Add the code below
  • Chmod the .htaccess file to 644

 

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

or

# BEGIN WordPress
RewriteEngine On
 RewriteBase /
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteRule . /index.php [L]
# END WordPress

Here's more information directly from WORDPRESS

Using Permalinks
Changing File Permissions
How to chmod the .htaccess file to 666

Installing the Affiliate Link Encoder on a WordPress Blog

Installing the Affiliate Link Encoder on a WordPress Blog

“The Affiliate Link Encoder (ALE) is a tool that uses javascript to automatically change direct merchant links that appear in your website html into AvantLink.com Affiliate tracking links. The ALE javascript will detect and change direct links only for merchants that are in the AvantLink network.”

This is a powerful tool for Bloggers, Forum Admins, and other community sites. It allows you or your community contributors to post direct links to any of the merchants you are associated with in the AvantLink Affiliate network and still earn a commission when a site visitor clicks on one of those links and buys from the merchant.

In this quick tutorial we are going to show you how to install the ALE javascript on a WordPress blog.
Get the Affiliate Link Encoder (ALE) code:

  1. First, log into your Affiliate account, click on ‘Tools’ and then under ‘Ad/Link Tools’ click on ‘Affiliate Link Encoder’
  2. Choose the website you will be using the ALE code on, add a custom tracking code if you want, and click the ‘Get Html’ button.
  3. Cut and paste the source code into a text editor or just leave it there and open another tab in your browser.

Install the code in your WordPress template:

  1. Log into your WordPress admin interface.
  2. Click on ‘Presentation’ and then ‘Theme Editor’.
  3. On the right side of the page you’ll see a list of theme files. Click on the ‘Footer’ link.
  4. In the source code form field, look for the closing html tag.
  5. Cut and paste your ALE javascript code in right before the closing tag.
  6. Save the changes and you’re done.

Now you can try creating a blog post and adding a direct link to one of your AvantLink merchants. You’ll notice that when you view the published article and rollover those links that they are Affiliate tracking encoded.