emlog The default classification page of the program displays the keywords of the whole site as the keywords of the home page. For the classification page, the keywords of the whole site are also displayed, which is not conducive to SEO optimization. How can the classification page of emlog display the keywords set by the current classification page? Blueleaf will share this method. In a few simple steps, your emlog website can display classified keywords.
Step 1: enter the background application center to download Template settings Plug ins are installed and activated. If your space does not support online installation, please go to Emlog plug-in After downloading the library, upload and install it via FTP.
The second step is to provide options. php Upload the file to your template directory. If the template directory you use already exists options.php For this file, you must not upload the overlay to avoid errors in your template. In this case, you can copy and paste the required code into your existing file according to the method in the video below options.php File.
Step 3: Open the header.php File, open it with an editor (remember not to edit it with Notepad), find <meta name="keywords" content="<?php echo $site_key; ?>" /> Replace this string of code with the code below, and then save and upload it to the space. The text description is not very clear, please see the recording of Blueleaf Video Tutorials 。
Open header.php to find the following code <meta name="keywords" content="<?php echo $site_key; ?>" /> Replace with the code below <? php if(isset($sortName)):?> <meta name="keywords" content="<?php echo _g('sort_keywords.'.$ sortid);?>" /> <? php else:?> <meta name="keywords" content="<?php echo $site_key; ?>" /> <? php endif; ?>
Disclaimer:
Website: Click Copy to share with friends!
All content resources shared by this website, if not noted, are original by Blueleaf. If you need to reprint, please indicate the source; Please contact us in case of infringement Contact handling 。 Please understand!