Jump to content

Archived

This topic is now archived and is closed to further replies.

scswraps

Adding text below logo

Recommended Posts

scswraps

Looking to add text links directly below the primary logo on the Business Branding section, is this possible using hooks?

Thank you.

Share this post


Link to post
Share on other sites
ellenmva

scswraps Yes, there is a filter on the logo so you can add to it. You will need to be using a child theme (this is the one I use, dms-child-theme) or a customization plugin. If you are using a child theme, in the functions.php file put this code after <?php (and any comments):

function bb_links_under_logo($site_logo) {
	$my_links = '<a class=" bb-link-one span6" href="#link_one_value">Link One</a><a class=" bb-link-two span6" href="#link_two_value">Link Two</a>';
	$output = $site_logo .'<div class="row bb-links">'. $my_links .'</div>' ;
	return $output;
}

add_filter('bb_site_logo', 'bb_links_under_logo');

That's a basic function that brings in the $site_logo from business branding and then you can add your links to the $output variable and return the $output. The filter then replaces the $site_logo in Business Branding with your functions output.

 

So basically you can make $my_links your values and add any other html and it will be returned in the $output.

 

Let me know if that works.

 

Ellen


Ellen Moore

Pagelines Developer

www.elsue.com www.betterdms.com

Share this post


Link to post
Share on other sites
scswraps

That is exactly what I was looking for, thanks so very much!

 

I'll send my result here is a few.

Regards 

Share this post


Link to post
Share on other sites
scswraps

Just awesome, here is a rough draft. AS you can see, I was trying to use the site title which is clearly not best practice  :lolu:

 

Screen-Shot-2015-01-09-at-11.07.14-AM.pn

 

 

Share this post


Link to post
Share on other sites
ellenmva

scswraps"] The href should be a link, sorry about that. So replace the # with the link address, http://www.link.comwith link being the address you want it to go to. so should be something like <a href="http://www.linkaddress.com">@[member="scswraps | #scswraps</a> -- the closing tag comes after the link text.

 

If two separate links just replace your values in the $my_links and take out the row and span classes. The function would be

function bb_links_under_logo($site_logo) {
	$my_links = '<a class=" bb-link-one" href="http://link_address.com">scswraps</a> | <a class=" bb-link-two" href="http://link_address.com">#scswraps</a>';
	$output = $site_logo .'<div class="bb-links">'. $my_links .'</div>' ;
	return $output;
}

See if that works better. 

 

We could have tried middle area but this keeps everything together with the logo.

 

Ellen


Ellen Moore

Pagelines Developer

www.elsue.com www.betterdms.com

Share this post


Link to post
Share on other sites

  • Similar Content

    • Pankaj32
      By Pankaj32
      Hello, my site is looks fine in google chrome however the fonts sizes appear bigger in IE and fire fox. I am using the IE 11 and latest version in mozilla fire fox too. Many sections are also displaying default DMS items in place of whats is actually added in them.
      The site's url  is delhirealestateguy.com . Would appreciate if someone can take a look and advice. Regards, 
    • Pankaj32
      By Pankaj32
      Hello, I had scanned through the forum and looks like my question has already been answered in a few threads already but I could not get any of those solutions to work for me. So please bear with me.
      I bought the "business branding section" and now I need to change the title of the font (oswald) and size too. Please let me know what code can I use to achieve this and where exactly am I suppose to paste this code. I had tried to experiment with various codes provided in other threads but none of them seem to make a different after refreshing. 
       
    • sersanet
      By sersanet
      Hello Ellen,
       
      I have just installed the business branding plugin to a new site for a customer..
      www-marbellawordpress.com
       
      For some reason i cannot seem to get the text to appear that has been added to the business branding section, additional business information.
       
      Please would you see your way to helping with this problem.
       
       
      Kind regards..
    • radroz
      By radroz
      Hey Ellen, what would it take to add Pinterest to the Business Branding options?
    • trisquelmedia
      By trisquelmedia
      Hi:
       
      Plugin Woocommerce for Pagelines breaks with woocommerce 2.1 , will be updated?
       
      Regards
×