• Resolved Gregosz

    (@gregosz)


    Hi!
    I am struggling with adding photo gallery to the footer:
    1) First I have created gallery and added it to the page using:
    <p>[Best_Wordpress_Gallery id="2" gal_title="Galeria Testowa"]</p>. Using photo gallery interface I have set all settings.
    2) Next I have added the following to the footer file:
    <?php echo do_shortcode('[Best_Wordpress_Gallery id="2" gal_title="Galeria Testowa"]') ?>
    3) Till now it works perfectly
    4) But because I need gallery to have only in the footer, I removed it from the page (<p>[Best_Wordpress_Gallery id="2" gal_title="Galeria Testowa"]</p>) leaving it in the footer.
    5) And now Photo Gallery in the footer seems to forgot all setting I set in the first point.
    6) Interesting thing is that, after restoring <p>[Best_Wordpress_Gallery id="2" gal_title="Galeria Testowa"]</p> back on my page all settings are remembered.
    I understand that possibly it is not problem in having same gallery on the page because all settings for gallery with id=2 are somewhere remembered.

    How to insert Photo Gallery to the footer with given settings without having it in any page?

    https://www.ads-software.com/plugins/photo-gallery/

Viewing 1 replies (of 1 total)
  • Thread Starter Gregosz

    (@gregosz)

    Hi!
    I am not sure what options you are talking about. But fortunately I fixed my issue ??
    At the beginning I had 2 galleries on my website:
    1)In some page: <p>[Best_Wordpress_Gallery id=”2″ gal_title=”Galeria Testowa”]</p>
    2)In footer <?php echo do_shortcode(‘[Best_Wordpress_Gallery id=”2″ gal_title=”Galeria Testowa”]’)

    So HTML elements dynamically created for them were being indexed by 0 and 1 accordingly.
    After removing gallery form the page there was only 1 gallery on my website. So elements for gallery in the footer were indexed by 0.
    It was enough to replace 1 with 0 in selected selectors in css.style:)
    thanks:)
    Grzegorz

Viewing 1 replies (of 1 total)
  • The topic ‘Photo Gallery in the footer’ is closed to new replies.