Viewing 15 replies - 1 through 15 (of 16 total)
  • in previous versions it was enough to do so:

    removed the lines
    <p><strong><?php echo $gallery->counter ?></strong> <?php _e('Photos', 'nggallery') ?></p>
    from album-compact.php

    I’ve tried it and it does not work

    This bothers me to. I think there should be a checkbox for this in options.

    Plugin Contributor photocrati

    (@photocrati)

    @bobbyau & @simo71 & @danielhagelin

    The number of photos was an existing display detail that was accidentally missed in a few recent versions. That issue was corrected, but it appears some, such as yourselves, do not appreciate the detail being there.

    Since there is no easily identifiable CSS element to address, you can look at either creating a custom template (recommended) or modifying the existing album-compact.php template.

    Look at the following:

    <?php if (@$gallery->counter > 0) : ?>
    <p><strong><?php echo $gallery->counter ?></strong>?<?php _e('Photos', 'nggallery') ?></p>
    <?php endif; ?>

    Either set the value of 0 (zero) to something insanely high, for example 100000, or remove the three lines altogether. Either way it should stop the number of photos from appearing under the Gallery thumbnail in the compact album. This would also be similar for the Extended album, too.

    – Cais.

    @all, If I may, I’d like to remind you that you can easily hide the number of photos in compact album display by CSS

    .ngg-album-compact p {
        display: none;
    }

    You can not hide it with CSS in the extended album only, like the one of the OP (and yes, it’s true that it has always existed until some versions ago).

    Plugin Contributor photocrati

    (@photocrati)

    @tizz – Thanks for this alternative!

    – Cais.

    Thread Starter bobbyau

    (@bobbyau)

    Great, thanks for replies.

    I’ve looked around nextgen folders a bit but cant find album-compact.php – which folder is it in? (my ftp doesnt have full search)

    I’m using extended album.

    @bobbyau You are using extended album, so you don’t have to modify album-compact.php, but /products/photocrati_nextgen/modules/ngglegacy/view/album-extend.php
    (As said above, for those who use compact album there’s no need to modify any files.)
    Keep in mind that every plugin’s update you’ll lose your modification, so take a note to modify it again.
    As @cais said, it’s better if you look at creating a custom template instead.

    I do not understand, I have several albums on the home page and only one shows the number of images!

    Thread Starter bobbyau

    (@bobbyau)

    Worked —> album-extend.php set the value of 0 (zero) to something insanely high, for example 100000.

    Thankyou kindly ??

    Doing the fix in album-extend.php no longer appears to work. Is there a corrected fix, or better yet an option in the settings that will allow us to turn off the number of photos display instead of having to edit CSS/PHP?

    Worked —> album-extend.php set the value of 0 (zero) to something insanely high, for example 100000

    Thread Starter bobbyau

    (@bobbyau)

    It would appear (as @denovati suggested) the edit no longer works in album-extend.php

    I have reapplied the edit and cleared the cache but that hasnt helped.

    Does anyone else have a suggestion of how to remove the number of photo text on an extended album. See https://arts-festival.com/artists/mall for an example.

    Plugin Contributor photocrati

    (@photocrati)

    @denovati – Try adding something like this to your custom CSS:

    .ngg-description p + p {
    	display: none;
    }

    – Cais.

    PS: We are working on adding more unique handles for some of the display details but this should work for the time being in your case. C.

    Great thanks, I had tried something similar to that but it didn’t work.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘How to remove '1 photos' in Extended Album’ is closed to new replies.