Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Header configuration & styling »

[SOLVED] How to add icon and link to logo bar


  #1  
Old Apr 8, 2009, 12:25 PM
crogers32
 
16 posts · Feb 2009
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?
  #2  
Old Apr 8, 2009, 07:34 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
I cannot think of anything more elegant. The code is in functions/bfa_header_config.php

Change

PHP Code:
$logo_area .= 'href="' get_bloginfo('rss2_url') . '" title="' 
$bfa_ata['post_feed_link_title'] . '">' 
$bfa_ata['post_feed_link'] . '</a>'
to

PHP Code:
$logo_area .= 'href="http://www.your-link.com/" title="....">Link Title</a>'
  #3  
Old Sep 2, 2009, 12:23 PM
halfacat's Avatar
halfacat
 
1 posts · Sep 2009
phoenix, az
Send a message via Yahoo to halfacat
This is cool, what if i want to keep the RSS stuff and add the twitter?
  #4  
Old Sep 16, 2009, 06:44 PM
iPuppet's Avatar
iPuppet
 
12 posts · Aug 2009
Washington, DC
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>';
}
}

Last edited by iPuppet; Sep 16, 2009 at 07:20 PM.
  #5  
Old Sep 17, 2009, 08:04 AM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
What's not working? I see the image there, and it's linked to the homepage
  #6  
Old Sep 17, 2009, 10:24 AM
iPuppet's Avatar
iPuppet
 
12 posts · Aug 2009
Washington, DC
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.

Last edited by iPuppet; Sep 18, 2009 at 12:24 AM.
  #7  
Old Sep 18, 2009, 05:57 AM
iPuppet's Avatar
iPuppet
 
12 posts · Aug 2009
Washington, DC
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.
  #8  
Old Sep 18, 2009, 07:42 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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="';
to
HTML Code:
			'http://www.thepuppetco.org/tickets/"><img class="logo" src="';
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How do I add a widget area inside the logo bar? jfriedman Header configuration & styling 8 Jun 26, 2011 09:59 PM
Feed Icon in page menu bar kkk RSS, Feeds & Subscribing 4 Nov 28, 2009 05:18 PM
How to add 2 link rollover buttons in horizontal header bar stevemitch2 Header configuration & styling 2 Jun 4, 2009 10:47 AM
How do I add an icon to a page menu link in page menu bar? bcorrigan Page & Category Menu Bars 9 Apr 6, 2009 03:35 PM
Logo Table- Feed/Comment Icon Help colemanorgoldman Atahualpa 3 Wordpress theme 1 Jan 27, 2009 11:08 PM


All times are GMT -6. The time now is 02:32 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.