Forums

WordPress Post Tabs
onclick Javascript instruction (1 post)

  1. Kristof De Buysere
    Member
    Posted 1 year ago #

    Post Tabs works really well on my WordPress 3.3.1 install. However, I want to use one tab to toggle the visibility of the comments on or off (so you basically end up with a tab "comments", where you can see all the comments, and hide those comments when any other tab is activate). For that, I use the code of an old plugin which is basically a javascript script: Hide or Show Comments: http://wordpress.org/extend/plugins/hide-or-show-comments/

    The most important instruction for that javascript function is (incorrect syntax):

    onclick= togLayer('hide'/'show');return false;

    Does anyone know how I can link this instruction to the tabs in Post Tabs, so it is executed on every tab press (with one tab associated with the 'show' instruction, and all the rest with the 'hide' instruction)?

    http://wordpress.org/extend/plugins/wordpress-post-tabs/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 1 year ago by Kristof De Buysere
  • This topic is not resolved
  • WordPress version: 3.3.1