Support » Plugin: WP-ShowHide » Move showHide link

Viewing 3 replies - 1 through 3 (of 3 total)
  • I have the same questions! can anyone help?!

    Plugin Author Lester Chan

    (@gamerz)

    https://github.com/lesterchan/wp-showhide/blob/master/wp-showhide.php#L68

    Replace Line 68 With
    $output = '<div id="'.$type.'-content-'.$post_id.'" class="'.$type.'-content" style="'.$hidden_css.'">'.$content.'</div>';

    Replace Line 69 With
    $output .= '<div class="'.$type.'-link"><a href="#" onclick="showhide_toggle(\''.$type.'\', '.$post_id.', \''.esc_js($more_text).'\', \''.esc_js($less_text).'\'); return false;"><span id="'.$type.'-toggle-'.$post_id.'">'.$more_text.'</span></a></div>';

    UNTESTED

    Thank you Lester. This works.

    Can you also help me to figure out how to put the link to be right in the paragraph. Right now it is floating in the middle of the page.
    I need it similar to where Read More triggers more text:

    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut READ MORE

    Thanks!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Move showHide link’ is closed to new replies.