Forums

[resolved] Show titles of widgets only in admin (3 posts)

  1. eagerwatcher
    Member
    Posted 2 years ago #

    I have lots of unlabeled text widgets on my sites because I don't want surfers to see the labels.

    I'd love to add labels that I can see when I'm logged in, and that's it.

    Been meaning to post about this for ages.

    Any help would be much appreciated.

    Jane

  2. eagerwatcher
    Member
    Posted 2 years ago #

    C'mon guys and girls, you can solve this!

    I believe in you :-)

    Jane

  3. eagerwatcher
    Member
    Posted 2 years ago #

    This has been solved.

    Take a look at ..

    http://i29.tinypic.com/2vkhuyo.jpg

    http://i32.tinypic.com/21015j9.jpg

    Nice labels on the inside and none on the outside :-)

    if ( !empty( $title ) ) { echo $before_title . $title . $after_title; } ?>

    replace with:

    if ( !empty( $title ) && stripos($title, 'Hidden') !== false ) { echo $before_title . $title . $after_title; } ?>

    In either default_widgets.php or widgets.php

    Jane

Topic Closed

This topic has been closed to new replies.

About this Topic