Search code examples
htmliframeseoranking

Will using iframes a lot on our site's landing page cause issues with search engines?


I am using various online services to create pages for our site and would like to use iframes for including pages in each other (for example header and footer blocks). I have a lot of blocks of content that I need to repeat across landing pages so using this mechanism is convenient. Will this cause a problem for search engines visiting our site or for our ranking? Thanks B


Solution

  • Yes, of course. Try to avoid using iframes as much as possible.

    In your case you may use, include or require functions. For example, if you use PHP:

    <?php include('header.html') ?>
    

    Update

    If you cannot use PHP or alternatives, consider including HTML inside HTML