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/
any help?
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
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
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
Well, I need map only before footer – so I’ve inserted code in files you have written.
Problem solved – thank you!