Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #180347

    Hello!
    I have following issue:
    I have inserted full-width map in file template-builder.php in root of theme – as result, it appears only on my homepage.
    How to make it appear on every page/post of site?
    http://kino-casting.ru/

    • This topic was modified 11 years, 1 month ago by artspbseo.
    #180723
    This reply has been marked as private.
    #180725

    any help?

    #180870

    Hi!

    What is the code? Can you please post it here? Pages that are not using the Advance Layout Builder will use the page.php file.

    Cheers!
    Ismael

    #181027

    Here is the code in template-builder.php:
    echo ‘</div><!–end builder template–>’;
    echo'<div style=”width: 100%; position: relative;”><div style=”color: #FFF; background-color: #AFAFAF; font-weight: 600; letter-spacing: 3px;
    z-index: 1; padding-left: 30%; font-size: 1.3em;padding: 8px 1em;text-align: center;”>как нас найти – Санкт-Петербург, набережная реки Мойки 101</div></div>’;
    echo do_shortcode(‘[wpgmza id=”1″]’);
    echo ‘</div><!– close default .container_wrap element –>’;

    P.S.
    [wpgmza id=”1″] = map shortcode

    #181050

    Hi!

    If you want to display the map on all pages insert the shortcode in header.php. template-builder.php is only a template file and will not load on every page. If you can’t insert it in header.php you need to add the shortcode to all templates, namely index.php, page.php, single.php, archive.php, search.php, single-portfolio.php, author.php and tag.php

    Regards,
    Peter

    #181090

    Well, I need map only before footer – so I’ve inserted code in files you have written.
    Problem solved – thank you!

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘global element’ is closed to new replies.