![]() |
[SOLVED] How to add icon and link to logo bar
I want to add a "follow me on Twitter" icon with corresponding link to the very top of my site where the logo bar is. I want to have this icon here instead of the feed icons that normally appear here. I attempted to do this myself hacker style by replacing this CSS:
/*-------------------- POSTS FEED ICON --------------------*/ .posts-icon { background: transparent url(images/icons/Twitter-2.png) no-repeat scroll 0; height: 40px; line-height: 40px; margin: 0px 10px 0px 20px; padding-left: 25px; padding-right: 55px; /*display: inline-block;*/ display: block; text-decoration: none; float: right; white-space: nowrap; } I replaced the image location to the icon and it displayed fine. The only problem was that the link was still for the posts-rss. I know that this link is coming from a php function but I cannot find it. Is there a better way of doing this than the way I am pursuing? How do I add the Twitter link? |
I cannot think of anything more elegant. The code is in functions/bfa_header_config.php
Change PHP Code:
PHP Code:
|
This is cool, what if i want to keep the RSS stuff and add the twitter?
|
I had this working, then upgraded to Atahualpa 3.4.2, and lost my changed bfa_header_config.php file. Now I can't get it to work again. I have no idea if I am doing something wrong or if it is broken under the 3.4.2 upgrade or possibly Wordpress 2.8.4. Please help, as tickets go online soon! The "logo" is the "Online Ticketing coming soon!" button in the logo area at http://www.thepuppetco.org. I did a replace per Flynn's instructions.
========================================== // POSTS Feed link if ( $bfa_ata['show_posts_icon'] == "Yes" ) { $logo_area .= '<a class="posts-icon" '; if ( $bfa_ata['nofollow'] == "Yes" ) { $logo_area .= 'rel="nofollow" '; } $logo_area .= 'href="http://www.thepuppetco.org/tickets/" title="....">Link Title</a>'; } if ( $bfa_ata['show_posts_icon'] == "Yes" OR $bfa_ata['show_email_icon'] == "Yes" OR $bfa_ata['show_comments_icon'] == "Yes" ) { $logo_area .= '</div></td>'; if ( $bfa_ata['show_search_box'] == "Yes" ) { $logo_area .= '</tr><tr>'; } } |
What's not working? I see the image there, and it's linked to the homepage
|
And I tried so hard to explain. :-) I don't want it linked to the homepage, I want it to go to the page I put in the example above. That page is a dummy, and will be linked to the ticket site when it is up. In the code I posted, expected it to have gone to http://www.thepuppetco.org/tickets when the button is clicked, not the home page.
|
I know Flynn is a busy guy, so if Juggledad or anyone reading this thread can help me, I am a bit desperate. I am trying to get the "Logo" in the header logo area to link to a page other than the blog or home. The code is shown above in red. Well, the whole thread is here for all to see. I am a little frustrated as to why it is not working or why it was not clear to Flynn what the problem was. If anyone can help me it would be greatly appreciated. Thanks.
|
You were putting this in the POST FEED area, not the LOGO
ok, here is how to do it. Change bfa_header_config.php (atahualpa 3.4.2) and change line 120 from HTML Code:
$bfa_ata['get_option_home'] . '/"><img class="logo" src="'; HTML Code:
'http://www.thepuppetco.org/tickets/"><img class="logo" src="'; |
All times are GMT -6. The time now is 01:27 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.