Support » Plugin: WP Photo Album Plus » Previous/Next navbar for slideshow – how make prev. & next?

  • Resolved vytaulla51



    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!

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


    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");

    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!

    Plugin Author Jacob N. Breetvelt


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

    Plugin Author Jacob N. Breetvelt


    Fixed in 4.8.11

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Previous/Next navbar for slideshow – how make prev. & next?’ is closed to new replies.