Jump to content
Sign in to follow this  
mborries

Need help: Insert links in header template?

Recommended Posts

Danny
Hi Mborries, I wouldn't recommend using a sidebar in the header, as you may need it at a later date. You could try this way though: 1. First add this to your function.php, paste it at the bottom. [code]add_action('pagelines_branding_icons_start', 'brand_links'); function brand_links(){ ?>
Custom Code and add this to the CSS rules box. .brand-links { float: right; width: 280px; } .brand-links a { padding:0 5px; } Click save and see how it looks. You may need to change the width to better fit your sites design. Hope that helps.

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
mborries
Hello dannyh, thanks for the code. I inserted the code in the functions.php before the last line with: ?>. But I get an error: Fatal error: Call to undefined function add_action() in /www/htdocs/w00e097c/wp-includes/functions.php on line 4552 Any idea? http://www.wallenstain.com/. Thanks a lot.

Share this post


Link to post
Share on other sites
Danny
So you add all of this to the bottom of your functions.php [code]add_action('pagelines_branding_icons_start', 'brand_links'); function brand_links(){ ?>

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
mborries
Hello Danny, now it works. Thank you. You are right I took the wrong function.php. Two effects I want to change to make it perfect. Perhaps you can help me. The color of the area under the header and the icons (twitter and so on) are vanished: http://www.wallenstain.com/. Thank??s a lot.

Share this post


Link to post
Share on other sites
Danny
Hi again, Glad it worked now. As for the other issues, I have just taken a look, first thing I would recommend you do is to remove the sidebar from the head template, as its causing an overflow from what I can see. As for the twitter and so on icons disappearing, I would need to take a closer look. Would it be possible for you to grant me access to your site so I can investigate it. I have sent you a PM.

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
mborries
Hello Danny, fantastic. It worked. I removed the div, that solved both problems. And float:left set the icons together. Thanks a lot. (Next step is to integrate the search box, but thats another story.)

Share this post


Link to post
Share on other sites
Danny
Great, I can't understand why on earth I put that
there, but I'm glad its working for you now.

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
mborries
Yes, and it looked great and now includes the searchbox: http://www.wallenstain.com/ Thanks for all.

Share this post


Link to post
Share on other sites
Danny
Looks really nice, goodjob.

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
alainafrederick
I'm trying to do this as well.... In PlatformBase functions.php after this line // Once overridden you can copy the code from that section, paste it there and edit to your heart's content. I added this code [code]add_action('pagelines_branding_icons_start', 'brand_links'); function brand_links(){ ?>

trying to figure out all the capabilities of pagelines

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×