• Hey all

    awesome slider, it’s the only one i use for client projects.

    I often get asked to add a button to the slider, has anyone done this?

    it would be good hook into the slider, add a new meta box or even custom field, then a different “read more” button text could be added for each slide

    any thoughts on doing this appreciated.

    https://wordpress.org/plugins/flexslider-hg/

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

    (@jamesdesign)

    hey all

    just kinda worked this out if anyone else needs to add some linking text.

    it does require a plugin mod, but only simple, see below

    in flexslider-hg.php around line 250, you will see this:

    $rtn .= get_the_excerpt();

    replace it with this:

    if($url) { $rtn .= $a_tag_opening; }
    $rtn .= get_the_excerpt();
    if($url) { $rtn .= '</a>'; }

    it uses the excerpt, which becomes your linking text (add some text like read more, view project etc)

    bit of css styling and it works a treat!

    use

    .slide-data > a

    for the css class…

Viewing 1 replies (of 1 total)
  • The topic ‘Help adding more button to slider’ is closed to new replies.