WordPress.org

Ready to get started?Download WordPress

Forums

WP Photo Album Plus
[resolved] Previous/Next navbar for slideshow - how make prev. & next? (5 posts)

  1. vytaulla51
    Member
    Posted 1 year ago #

    Hi:

    Is there a way that I can change the words in the slideshow previous photo/next photo navigation?

    On Oopa's site there's a sample showing the navigation as: Prev. 1/8 Next
    instead of:
    Previous Photo Photo 1 of 8 Next Photo
    I'm thinking there's a label setting in one of the php or js files somewhere that I could change but I haven't found it.

    Overall the slideshow is wonderful for a responsive redo I'm doing on a theme. I've managed to get most things to work well in multiple sizes. Wonderful plugin!

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

  2. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 1 year ago #

    This is an interesting question.

    There is a switch so that small displays ( widgets ) use the short method, and normal displays use the long ones.

    The switch is (js): wppaIsMini[mocc]; where mocc is the occurrance number (the nth invocation of wppa on the entire page.

    The switch is set true for widgets, otherwise false. Be carefull with modifying this.

    I realize that for responsive themes there is a potential problem. I will improve the decision whether to use the long or short form, depending of the container width. Would 300px do it?

    For the time being, you can change wppa-non-admin.php starting from line 227 it reads:

    echo("\t".'wppaPhoto = "'.__a('Photo', 'wppa_theme').'";'."\n");
    echo("\t".'wppaOf = "'.__a('of', 'wppa_theme').'";'."\n");
    echo("\t".'wppaPreviousPhoto = "'.__a('Previous photo', 'wppa_theme').'";'."\n");
    echo("\t".'wppaNextPhoto = "'.__a('Next photo', 'wppa_theme').'";'."\n");
    echo("\t".'wppaPrevP = "'.__a('Prev.', 'wppa_theme').'";'."\n");
    echo("\t".'wppaNextP = "'.__a('Next', 'wppa_theme').'";'."\n");

    change to:

    echo("\t".'wppaPhoto = "";'."\n");
    echo("\t".'wppaOf = "";'."\n");
    echo("\t".'wppaPreviousPhoto = "'.__a('Prev.', 'wppa_theme').'";'."\n");
    echo("\t".'wppaNextPhoto = "'.__a('Next', 'wppa_theme').'";'."\n");
    echo("\t".'wppaPrevP = "'.__a('Prev.', 'wppa_theme').'";'."\n");
    echo("\t".'wppaNextP = "'.__a('Next', 'wppa_theme').'";'."\n");
  3. vytaulla51
    Member
    Posted 1 year ago #

    Hi Opajaap:

    Thank You for your reply -- just what I needed!

    With respect to 300px: I actually go down to 220px! Its pretty amazing what you can fit into that small a space.

    Thanks again!

  4. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 1 year ago #

    Will be implemented in the next version. I will make it configurable because of other languages. Thanx for this topic.

  5. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 1 year ago #

    Fixed in 4.8.11

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic