• Resolved charles_i

    (@charles_i)


    I don’t want breadcrumbs on this page http://thelocalscoop.org/scooppress/art-hives/ because it’s just a photo gallery with no albums. I do need them on the rest of the site though so I tried your JS code (untexturised) on the php page template:

    <script type="text/javascript">jQuery('#wppa-bc-1').html(");jQuery('#wppa-bc-1').css('visibility', 'hidden');</script>

    but can’t get it to work. This album’s ID is 1 as in the example. Here’s the shortcode:
    [wppa type="album" album="1" size="800" align="center"][/wppa]

    Thanks
    Charles

    http://wordpress.org/plugins/wp-photo-album-plus/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jacob N. Breetvelt

    (@opajaap)

    The ‘1’ in #wppa-bc-1 is not the album id, but the wppa+ occurrance.
    The script shows up in your page at the very beginning ( even before <!DOCTYPE html>.

    Put the script right BELOW the shortcode in the page.
    It can be even simpler:

    <script type="text/javascript">jQuery('#wppa-bc-1').css('display', 'none');</script>

    BTW:
    There are two blocks of js code using $ for jQuery. jQuery is loaded in wp in the so called safe mode. You should use jQuery() in stead of $().

    See the page source from within the browser

    Thread Starter charles_i

    (@charles_i)

    Thanks. That worked. You should update that here http://wppa.opajaap.nl/wppa-tutorial/a-portfolio/ and explain that it’s supposed to be on the WP Page. Actually, that’s a great tip and it’s somewhat buried in Portfolio – maybe you should make it a Script Reference item.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can't get the JS to remove breadcrumbs to work.’ is closed to new replies.