Install Config Wiki

All about installing, configuring and troubleshooting

User Tools

Site Tools


wiki:how-to-remove-thanks-to-wordpress-and-wp-advocate-in-the-footer

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:how-to-remove-thanks-to-wordpress-and-wp-advocate-in-the-footer [2020/02/13 02:03] wikiadminwiki:how-to-remove-thanks-to-wordpress-and-wp-advocate-in-the-footer [2020/02/13 11:25] (current) wikiadmin
Line 3: Line 3:
 This applies to the WordPress Theme known as WP-Advocate by [[https://www.wpdevshed.com/our-themes/]]. This applies to the WordPress Theme known as WP-Advocate by [[https://www.wpdevshed.com/our-themes/]].
  
-Find the footer.php file for the them WP Advocate.  It is located in the path /website-root/wp-content/themes/wp-advocate/+Note: The following solution has been tested to work when the default page (homepage) of the website is configured to be a static page rather than being the blog page of the WordPress website.  In that configuration, a different static page (or no page at all) is designated as the blog page.  Also, I am working in a Windows server environment, so I will be using a text editor that I installed known as NotePad++ in order to edit PHP files.
  
-Using NotePad++ Open the file called "footer.php" and then save as "foot.php-backup"+Let's get started 
  
-Close the backup that you just created and re-open the original file called "footer.php+First, find the footer.php file for the theme known as WP Advocate. Within the WordPress core files, the footer.php file is located in the path /your-website-root/wp-content/themes/wp-advocate/footer.php
  
-Locate the following source code:+Using NotePad++ Open the file called "footer.php" and then "save as" -- that is, save a backup of this original footer.php file and name it -- "footer.php-backup" 
 + 
 +Close the backup that you just created and again use Notepad++ to re-open the original file called "footer.php"  
 + 
 +Locate the following source code / script:
  
 <code> <code>
Line 26: Line 30:
 </code> </code>
  
-Now find the following conditional:+Now find the following conditional within the above script:
  
 <code><?php if(is_home() || is_front_page()): ?></code> <code><?php if(is_home() || is_front_page()): ?></code>
  
-Replace || with && and then save the file footer.php.+Here is the solution. 
 + 
 +Replace || with && and then save(/overwrite) the footer.php file. 
 + 
 +Following is the resulting conditional: 
 + 
 +<code><?php if(is_home() && is_front_page()): ?></code>
  
-This symbol || is the OR conditional+This symbol || is the OR logical operator
-This symbol && is the AND conditional.+This symbol && is the AND logical operator.
  
-Your homepage will no longer display "Thanks to WordPress and WP Advocate."  It will only display the copyright notice of the title element of the website.+The footer section of your homepage should no longer display "Thanks to WordPress and WP Advocate."  It will only display the copyright notice of the title element of the website.
  
  
wiki/how-to-remove-thanks-to-wordpress-and-wp-advocate-in-the-footer.1581559393.txt.gz · Last modified: 2020/02/13 02:03 by wikiadmin