Jump to content


Photo
- - - - -

Need to hide button in Callout section


  • Please log in to reply
4 replies to this topic

#1 ddecort

ddecort

    Member

  • Members


  • 18 posts
  • Country: Country Flag

Posted 11 July 2012 - 03:38 AM

I use the callout section to place a phone number up in the top right corner of my site. With the recent update to 2.2.2, now there is a blank button that I need to go away, as it's shifting over the callout element. Is there some easy css to hide this button or turn it off in the admin?

#2 ddecort

ddecort

    Member

  • Members


  • 18 posts
  • Country: Country Flag

Posted 11 July 2012 - 03:49 AM

i also need to remove the h2 tag from this text, as this is bad for our SEO (the phone number shouldn't be the h2 on every page). What is the easiest way to customize this section so that my changes aren't lost when I update the theme?

#3 Danny

Danny

    Is Awesome!

  • Moderators
  • 17966 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 11 July 2012 - 08:10 AM

Hi, I think you probably best using a different section to display your contact information, such as the Content Box or Universal sidebar. You could also try using Hook.

#4 ddecort

ddecort

    Member

  • Members


  • 18 posts
  • Country: Country Flag

Posted 11 July 2012 - 05:04 PM

Could you provide any direction on how I would use a hook for that? The general idea is I need a section that can sit inside the branding section and be fully editable without pushing other things around

#5 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 11 July 2012 - 08:10 PM

You'll want to install the PageLines Customize plugin, edit the functions.php file there with this (edit as needed):

 // ---> uncomment to load
	add_action('pagelines_inside_top_branding', 'global_phone_no');
	
	// function name
	function global_phone_no(){
	
	?>
	<div class="global_phone_no">your telephone number</div>
	<?php }
	// end function

In PageLines Customize > style.css, add some styling for the global_phone_no div in order to style the number, include a background, etc. The basics should be:
 #branding .global_phone_no {
	    float: right;
	    z-index: 10;
	    position: relative;
	}