-
AuthorPosts
-
October 24, 2013 at 7:01 pm #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 12 years, 2 months ago by
artspbseo.
October 25, 2013 at 4:15 pm #180723This reply has been marked as private.October 25, 2013 at 4:16 pm #180725any help?
October 26, 2013 at 12:46 am #180870Hi!
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!
IsmaelOctober 26, 2013 at 2:55 pm #181027Here 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 shortcodeOctober 26, 2013 at 5:04 pm #181050Hi!
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,
PeterOctober 26, 2013 at 8:04 pm #181090Well, I need map only before footer – so I’ve inserted code in files you have written.
Problem solved – thank you! -
This topic was modified 12 years, 2 months ago by
-
AuthorPosts
- The topic ‘global element’ is closed to new replies.
