Foundation logo and colors quandary
Support Area › Forums › Foundation › Foundation logo and colors quandary
- This topic has 12 replies, 2 voices, and was last updated 10 years, 3 months ago by Bill Robbins.
-
AuthorPosts
-
December 30, 2013 at 16:21 #15900Chris JonesParticipant
Hey guys, first: Love the new home page on your site!
I have a client who needs to have a page with a different logo and color scheme. The logo is most important.
I;ve tried convincing them that it would be a wise decision to change their business model to one logo across there properties as they are all the same type of business but no joy.
Any recommendation on how to approach this? My first thought was to create a custom template based on the your default page. Searched for plugins for this but not too keen on that approach.
thanks and happy new year!
December 30, 2013 at 16:24 #15901Chris JonesParticipantIs there some bad mojo with the forums? My topic has not content.
December 30, 2013 at 16:58 #15903Bill RobbinsModeratorHey Chris,
Sorry for the topic being visible for you. Our membership plugin is fighting with the bbPress forum plugin and the top post is only visible by me at the moment. They promise that they will fix it, though I have my doubts. We may be moving to Zendesk soon.
Not about your question. If they only need the separate logo and color scheme on one page, I would just create a new page file for that inside the theme itself. WordPress looks at the file names based on what is being viewed. If it’s a page called about, then WordPress will load a file named page-about.php. You could create that file and use it to house all of your changes that are required just for that page.
If you’ll need this on more than one page, you could create a page template so it can be reused a bit more easily.
In either case, I would start by duplicating the page.php file (or whichever template file you need). Then copy the content out of the header.php file and replace this line at the top of the page.php file with the header content:
<?php get_header(); ?>
That way you can alter the code for the logo and also add in the necessary style changes in the header without having to create an additional header file.
I hope that helps out. If you have any questions as you implement it, just let me know.
Happy New Year,
BillJanuary 6, 2014 at 13:19 #16001Chris JonesParticipantThanks Bill, just seeing this. I reposted a simlar question just now, sorry about that but it look like nothing I post actually posts.
thanks again
January 6, 2014 at 17:17 #16010Bill RobbinsModeratorChris,
Sorry about the posting question. It does post, but the first post is only visible to me. It’s a bug between the forum and membership plugins.
If you run into trouble, let me know,
BillJanuary 13, 2014 at 09:43 #16174Chris JonesParticipantHi Bill,thanks for the info, it got me started in the right direction.
I decided to go with using template tags, created a new page template based on page.php and a second header.php(header-cyr.php). Call the second header like this:
get_header('cyr');
I believe this is the code I need to tweak?
<div id="logo"> <?php if (is_front_page()) { echo '<h1><a href="'.home_url().'/"><img src="'.of_get_option('logo','').'" alt="'.get_bloginfo('name').'" /></a></h1>'; } else { echo '<a href="'.home_url().'/"><img src="'.of_get_option('logo','').'" alt="'.get_bloginfo('name').'" /></a> '; } ?> </div>
My first thought is to change just the
January 13, 2014 at 09:44 #16175Chris JonesParticipantsorry for the code mess, I don’t see a way to post as plain text
January 13, 2014 at 09:48 #16176Chris JonesParticipantFound it…. obviously.. DOH!
January 13, 2014 at 09:57 #16178Bill RobbinsModeratorThat’s a fine way to do it too. In your new page template, what you’ll want to do is find this line:
<?php get_header(); ?>
and replace it with this:
Then in the new header file, you’ll adjust the code you posted above. It’s set to pull the logo from the theme options page, but you can change it like this:
That will take out the conditional statement that you won’t need here. Just replace the
http://yoursite.com/new-logo.png
with the URL to your new logo and that should do it.If you run into any trouble, let me know.
Have a great week,
BillJanuary 13, 2014 at 10:47 #16184Chris JonesParticipantThanks Bill. Especially for the fast follow up.
Off Topic: On your Elite theme, do you have plans to make it so when you click a menu it’s scrolls(i would prefer a fade) down to the correct content vs refreshing to a new page? Or is that already a feature?
January 13, 2014 at 10:54 #16185Bill RobbinsModeratorAnytime Chris,
Good question too. You can link to sections of the home page in the Elite theme from the navigation menu. Each section has a unique ID that you can use as an anchor when creating links in the navigation builder. There’s a spot in the navigation builder where you can create a custom link. Just use #home-one, #home-two, #home-three and so on in that spot to link to any section.
There isn’t a smooth scroll script built into the theme, but you could add one rather easily. I use one in the version of Elite that I’m running on my store.
Thanks,
BillJanuary 13, 2014 at 12:55 #16188Chris JonesParticipantThanks,
My site needs a refresh and Elite looks like exactly what I imagined. Any tips on adding a smooth scroll script would be helpful.
January 13, 2014 at 15:28 #16194Bill RobbinsModeratorGive this a shot to add that in:
- Go to the Appearance section in your WordPress control panel and select Edit.
- From the list of files on your right, choose custom-js.php
- Find this spot:
</script>
and right above that paste this:
- Save your changes.
See if that won’t add in the smooth scroll for same page links.
Let me know if you run into any trouble,
Bill -
AuthorPosts
- The topic ‘Foundation logo and colors quandary’ is closed to new replies.