Jump to content
Sign in to follow this  
bizint

Main Logo in Framework. Changing the Alt Tag to Keywords. Back to Square One

Recommended Posts

bizint

Hi Guys, I've had a major drop off on my keywords so I've looked under the hood and found since the framework upgrade I lost alot of the work I put into Platform Pro. One of the biggies is from this thread below: http://www.pagelines.com/forum/discussion/17007/the-main-logo-cant-change-the-alt-tag#Item_15 Here I added a filter into the function.php in platformbase to change the alt tag on the log to my keywords (so more keywords are on every page). When I go into the base theme for framework can I just cut and paste the sample "filter" like in platform pro? And if I do where do I put it? I'm worried I might break something if I put it in the wrong place?! Thanks for your help. I hate to go here again...but I seem to have to go over old ground all the time with each update! James

Share this post


Link to post
Share on other sites
WebWerx
@bizint: Why are you even looking at "keywords"? Google does not.... Title Tags & Meta Descriptions + meaningful content. Or is this a misnomer?

Share this post


Link to post
Share on other sites
catrina
WebWerx is right about the title tags and meta descriptions - they are very important in SEO.

Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
bizint
??!!! Thanks for the advise, but please can I get some support instead?! :-) My logo, which is on every page of my website has an alt tag of "Business Interiors"(default pagelines). I want it to say "Office Design, Office Fit Out & Office Refurbishment". This is basic SEO. All my title tags and meta descriptions are optimised already. If you look at this thread you can see "we" did it before. http://www.pagelines.com/forum/discussion/17007/the-main-logo-cant-change-the-alt-tag#Item_15 My page has about 500 pages. If the alt tag on my logo is "office design" rather than "business interiors"...it stands to reason that I will have 500 additional instances of "office design"in my code and on each page. This is a little more juice to ranking over and above the already optimised title tag and meta descriptions.... :)

Share this post


Link to post
Share on other sites
Danny
Hi Bizint, Alt tags are very important for SEO as long as the image is clickable, if the image is static meaning it doesn't point to anything then alt tags are pointless, as far as I know. I don't think that filter will as I don't think there is a hook for the site logo like Platform Pro, I may well be wrong but I couldn't located it with Action Map. Why don't you simply replace your Site Name from Wordpress Settings > General ? You could also try downloading a fresh copy of PageLines Framework and go to the sections folder. Then depending on which section you're using for your logo i.e. Branding/BrandNav and then edit the section.php file. The upload the edited section to your child theme's section folder or wp-content/plugins/pagelines-sections/

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
bizint
As you know the main logo image is clickable in all of your themes, so I'm glad we all agree this is important! Replacing the title in settings will fix the alt tag but then mess up hundreds of other areas that pull my title brand ...such as automatic titles for pages (using wordpress seo). I really need to change this...I dont know where the code for the logo is...what php to play with, this framework is abit of a mystery after jutsing getting platform pro down. The last solution with platform pro was not easy at all. Hooks, filters, changing php. I can do it, but I need a little guidance and then this support is here for the next person (it was a fairly common topic in platform pro). I have a child theme - and pagelines. So do I just take a php from pagelines...add or change a little bit of code...then put it into the "base". Thanks very much for you help. James

Share this post


Link to post
Share on other sites
Rob
James, I actually agree with all the others on the SEO issues, but to directly answer your question, you can paste the original code you created in PlatformPro into the functions.php found in the PageLines Customize plugin. Add it to the end. However, be prepared to adjust it as many elements have changed in Framework from PlatformPro. Since I don't know which elements you used, I couldn't advise which to try, however, as Danny points out, the Action Map would help identify that for you. Check our Wiki for help with the hooks or here: http://api.pagelines.com/hooks

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
bizint
Ok..but I just read another thread that said if you have a base theme you shouldn't use the pagelines customise plugin? You should put the new php in the base theme somewhere? Very very confused....What is an action map?

Share this post


Link to post
Share on other sites
bizint
Ok...well I cut and pasted this: add_filter('pagelines_site_logo', 'my_header'); function my_header($header) { $header = sprintf('office design, office refurbishment london, office fit out, birmingham, business interiors', 'http://www.businessinteriors.co.uk/', get_bloginfo('name'), esc_url(pagelines_option('pagelines_custom_logo')), get_bloginfo('name')); return $header; } Into the pagelines-customize/functions.php file on the end.....and nothing happened.... and even if it did work, is it in the wrong place because I have a base/child thing setup? And now its wrong.....where do I check these actions? I dont mind going one by one and figuring it out....but I don't really know what I'm doing. I see all those "hooks"...do I have to change some of the wording above to match the framework coding...like a sort of deprecated call on the new version :-s Wouldn't this be real quick for someone who knew what they were doing (unlike me this deep) to help :-D pretty please

Share this post


Link to post
Share on other sites
Danny
Hi, I have just added the code to my test child themes functions.php file and it code works just fine. [code]add_filter('pagelines_site_logo', 'my_header'); function my_header($header) { $header = sprintf('office design, office refurbishment london, office fit out, birmingham, business interiors', 'http://www.businessinteriors.co.uk/', get_bloginfo('name'), esc_url(pagelines_option('pagelines_custom_logo')), get_bloginfo('name')); return $header; }[/code]

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
bizint
This is weird...I went into the child themes (base right?) function.php and this was in there: // OVERRIDE SECTION TEMPLATES --------// // Want more customization control over any of the core section templates in PlatformPro? Just override the template file. // To do that, just add a file called template.[section-id].php to this child theme and it will override the section templates // for the section with that ID. For example, template.boxes.php will override the boxes templates. // Once overridden you can copy the code from that section, paste it there and edit to your heart's content. //add_filter('pagelines_site_logo', 'my_header'); //function my_header($header) { // $header = sprintf('Office Design, Fit out & Refurbishment UK - Business Interiors', 'http://www.businessinteriors.co.uk/', get_bloginfo('name'), esc_url(pagelines_option('pagelines_custom_logo')), get_bloginfo('name')); // return $header; //} This was in the functions.php of my child theme....something about platformpro and also my old code for main logo from platform pro....how did that get in there?! mmm Anyway, I cut and pasted your code above into the functions.php in base (wp-content > base theme >functions.php ) and nothing happened...should I take the code out of customise? will do anyway...have I put the code in the right place? how did the old code from platofrm pro get into base? weird.

Share this post


Link to post
Share on other sites
Danny
OK, I am at a loss now, your website is using PageLines Framework, so why are you using the Platform Pro Base theme, which isn't compatible with PageLines Framework ? If you're using PageLines Framework, you should be using the PageLines Framework compatible base child theme available for free in the store or use the PageLines Framework customisation plugin. Then add your code to the functions.php file that is available in either the base child theme or the customisation plugin.

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
bizint
It is the pagelines framework compatable base theme (wouldnt work otherwise) I dont know why my old filter for the main logo is in there in a "commented" way... is this in the upgrade? Anyway - I've uncommented it so the filter is in the base functions.php and it is removed from the customise plugin in pagelines framework (btw should I remove customise plugin if using base child? Should I put all customisations in base function.php not the customise plugin functions.php if using a base theme?! Confused!) I've tried putting the code in both the customise functions.php of the plug-in and also in the base functions.php and neither location is working....any ideas?! Many thanks.

Share this post


Link to post
Share on other sites
bizint
woah woah woah....it's working?! Weird....its in the base function.php now....I deleted the old one that I cut and pasted....then un-commented the old one that was mysteriously there.... can you put the filter in the wrong place on the functions page? I'd still be interested if I ignore the customise plug-in with base...thanks so much for helping me with this! :D

Share this post


Link to post
Share on other sites
Danny
No problem, was happy to help!

Please search our forums, before posting!

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  

×