×

php up to date

Codeigniter how to write meta tag dynamically in related to best seo practice?


Codeigniter how to write meta tag dynamically in related to best seo practice?


Hi friends,
          Here I will share how to write meta tags dynamically in codeigniter projects.
It is very helpful to solve seo related issues in your website. Pretty simple technique here to solve the issues.

Here now i am going to write piece of code in header.php file

/*Header file started*/
<?php
    if ($metadata['description']) {
    ?>
        <meta name="description" content="<?= $metadata['description'] ?>">
    <?php
    }
    if ($metadata['keywords']) {
    ?>
        <meta name="keywords" content="<?= $metadata['keywords'] ?>">
    <?php
    }
    if ($metadata['authors']) {
    ?>
        <meta name="authors" content="<?= $metadata['authors'] ?>">
    <?php
    }
    ?>
/*Header file ended*/

/*Controller code in Page function*/

$data['metadata'] = array(
'title' => 'your website page title',
'description' => 'your website page description',
'keywords' => 'your website page keywords',
'authors' => ''
);
$this->template->set_layout('pages')->title('pagename', APP_NAME)->build('pagename ', $data);

/*end controller*/

This is the code snippet of dynamic meta tag creation.
Like ways you need to create all the pages. So that each page having unique values. It will help you to boost seo score in codeigniter application.


I hope it will help you..
Thank you ...

Donate us


If you need any help let us know we will solve it.

Eightlegbuilders.com

Eightlegbuilders.in

vmkrealestate.in

How to import blogger posts into wordpress? Easy solution?

How to import blogger posts into wordpress? Easy solution?

I am here share how to import your personal blogger posts into wordpress website post.
It is very easy to import from your wordpress website.
You need to do simple steps to achieve this.
step 1 : Install Blogger Importer Extended wordpress plugin in your wordpress blog
step 2: Find your blogger id that is available in the blogger url copy that id
step 3: Run the blogger importer plugin 
Step 4 : place the blogger id 

Step 5 :  Click on import content
Thats all all of your post imported into your wrodpress blog.



How easy is this.. 
Thank you
www.eightlegbuilders.com
www.eightelgbuilders.in

SEO Hacks - Basic Fundamentals

SEO Hacks - Basic Fundamentals
If you are a beginner of seo and wants to improve site seo score follow these simple tips to get good score.

1. Title tag
         Title should be 50 to 60 characters length.

2. Description
       Description should be 155 to 160  characters  length.

3. Keywords
      Keywords should be  100 to 255 characters  length.

4. Sitemap
       Sitemap plays important role in seo. Generate sitemap using this link.  https://www.xml-sitemaps.com/

5. Robots
         http://tools.seobook.com/robots-txt/generator/ using this link generate robots text.

6. htaccess - .htaccess file helps to write 404 page, cache implementation works and etc.

7. 404 page
         404  page creation. When anyone trying to access page, which is not available that time 404 page trigger. So we tell the user you are requested page not available go 
         back to main page like that.

8. Google Analytics setup
         https://analytics.google.com/analytics/web/ Google analytics will help to monitor your website traffic. So it is helpful to identify the traffic sources. 

9. Google webmaster setup
         https://www.google.com/webmasters/ Google webmaster useful to crawl website in google search engine. There are many other search engine available such as bing,             yandex. They also having webmasters so implement it will show your website in their search engine. 

10. Social Media Page Integration
        Social media integration also improve your seo score. Based on woorank facebook, twitter, instragram, pinterest. 

11. Image Alt tag - All images tags should have alt tag  implementation.  Alt tag should be meaningful and relative to the image service. (<img src="" alt="" title="")

These steps are very basic steps in SEO. There are many other important steps also available to impletment. 

    Donate us