Your Time:
Our Time:
← Back to discussions

Sticky Bar Enable HTML

Need help with a different issue? Search the forums or open a new ticket.
Open a support ticket

This topic has 3 replies, 2 voices, and was last updated 9 years, 6 months ago by Anonymous.

  • 2017-03-01 at 3:00 am
    Support Expired
    #19426
    douglaskarr
    Participant
    • Topics: 7
    • Replies: 7
    • Total posts: 14
    • Post count: 7
    1. How can you make the Sticky Bar always show? Mine is hidden when the site is displayed.
    2. I have an anchor tag in the Sticky Bar and it shows up as the actual HTML characters instead of being rendered as a link. Can I have a link in there?

    Not sure if it matters, but I’m working with a child theme. I’ve not made any changes to the sticky bar, though.

    2017-03-01 at 10:48 am
    #19430
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    Find for the below code in header.ph file
    <div id="sticky"><?php echo esc_html( get_option( 'atp_stickycontent' ) ); ?></div>
    and replace it with this,
    <div id="sticky"><?php echo get_option( 'atp_stickycontent' ); ?></div>

    Also, find this code in style.css file

    #sticky {
    	top: 0;
    	display: none;
    	position: relative;
    	width: 100%;
    	padding: 10px 0;
    	z-index: 1000;
    	background-color:#61bfff;
    	color: #222222;
    	font-size: 12px;
    	text-align: center;
    }

    and replace it with this,

    #sticky {
    	top: 0;
    	display: block;
    	position: relative;
    	width: 100%;
    	padding: 10px 0;
    	z-index: 1000;
    	background-color:#61bfff;
    	color: #222222;
    	font-size: 12px;
    	text-align: center;
    }
    2017-03-03 at 10:55 pm
    Support Expired
    #19458
    douglaskarr
    Participant
    • Topics: 7
    • Replies: 7
    • Total posts: 14
    • Post count: 7

    Perfect, thanks so much!

    2017-03-06 at 10:25 am
    #19465
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    We are setting this topic to be resolved. If you wish to update this topic please reply here instead of creating another topic.

You must be logged in to reply to this topic.