Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Debashish

    (@debashish)

    Well an easy way out is to use a different sidebar for such pages. If you want to edit the plugin you may want to edit line 107 of the plugin code and the change the line

    from
    if(!$isHome && (is_single() || is_page()) && $authordata->ID){

    to something like:
    if(!$isHome && (is_single() || is_page()) && $authordata->ID && !is_page(array('About us','Contact'))){

    Ensure that you enter the correct page title in place of “About us” and “Contact”. This will make the widget disappear on these pages, additional pages may be added separating page titles with “comma”, as shown above.

    Note that the plugin doesn’t support this feature by default and I have not tested the above code. Do let me know if its works for you.

    Thread Starter dealfonso

    (@dealfonso)

    Thanks for replying so quickly!

    We finally managed to do the same in a more “generic” way by deleting one piece of the code.

    from
    if(!$isHome && (is_single() || is_page()) && $authordata->ID){

    to:
    if(!$isHome && (is_single()) && $authordata->ID){

    so the box won’t appear on pages, just on articles.

    Plugin Author Debashish

    (@debashish)

    Cool ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘What if I don't want the authors box to show on pages?’ is closed to new replies.