Foundation logo and colors quandary

Support Area Forums Foundation Foundation logo and colors quandary

Viewing 13 posts - 1 through 13 (of 13 total)
URL to the page in question:
  • Author
    Posts
  • #15900
    Chris Jones
    Participant

    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!

    #15901
    Chris Jones
    Participant

    Is there some bad mojo with the forums? My topic has not content.

    #15903
    Bill Robbins
    Moderator

    Hey 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,
    Bill

    #16001
    Chris Jones
    Participant

    Thanks 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

    #16010
    Bill Robbins
    Moderator

    Chris,

    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,
    Bill

    #16174
    Chris Jones
    Participant

    Hi 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

    #16175
    Chris Jones
    Participant

    sorry for the code mess, I don’t see a way to post as plain text

    #16176
    Chris Jones
    Participant

    Found it…. obviously.. DOH!

    #16178
    Bill Robbins
    Moderator

    That’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,
    Bill

    #16184
    Chris Jones
    Participant

    Thanks 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?

    #16185
    Bill Robbins
    Moderator

    Anytime 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,
    Bill

    #16188
    Chris Jones
    Participant

    Thanks,

    My site needs a refresh and Elite looks like exactly what I imagined. Any tips on adding a smooth scroll script would be helpful.

    #16194
    Bill Robbins
    Moderator

    Give this a shot to add that in:

    1. Go to the Appearance section in your WordPress control panel and select Edit.
    2. From the list of files on your right, choose custom-js.php
    3. Find this spot:

      </script>

      and right above that paste this:

    4. 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

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Foundation logo and colors quandary’ is closed to new replies.