Community Forums › Forums › Archived Forums › General Discussion › Footer Nav
- This topic has 5 replies, 3 voices, and was last updated 11 years, 2 months ago by Anita.
-
AuthorPosts
-
January 27, 2013 at 3:30 pm #15416manavecplanMember
If you look at the footer nav on http://www.cityslick.in , you'll notice it's messed up.
The PHP I'm using is:
//ADMIN: Customize the footer function bg_footer() { ?> <div id="footer"><div class="wrap"><span class="left"> <p>© Copyright <?php echo date('Y'); ?>-City Slickin'. All Rights Reserved.</span><span class="right">Powered by some taste, <a href="http://www.yoyohoneysingh.com/">timeless music</a> and the spirit of Bombay.</p></span> </div></div> <?php } remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 ); remove_action( 'genesis_footer', 'genesis_do_footer' ); remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 ); add_action( 'genesis_after', 'bg_footer' );
What I actually want is the footer nav to resemble the header nav...using span: left and span: right.
I tried doing this but it doesn't seem to work too well...
Any ideas? I'm using the Avalance theme by Brian Gardner...
January 27, 2013 at 4:29 pm #15429Zach RussellMemberThe first thing I see just by glancing at the code is that the link you have in the footer to yoyohoneysingh.com isn't made right, it looks like you have some sort of a link within a link, which could be why the styling isn't working properly. The PHP is correct to add the footer nav. The other recommendation that you'll hear from me, or almost anyone else on this forum is to use Firebug or Chrome Developer tools (more advanced) to find CSS issues and test styling live in the browser.
Hope that helped!
———-
Zach Russell
President, ProTech Internet GroupJanuary 28, 2013 at 12:20 pm #15598manavecplanMemberThat's very strange...thought I had keyed it in correctly.
This is my current PHP but it still breaks formatting(please ignore the double hrefs)...
//ADMIN: Customize the footer function bg_footer() { ?> <div id="footer"> <div class="wrap"><span class="left"> © <!--?php echo date('Y'); ?-->-City Slickin'. All Rights Reserved.</span> <span class="right">Powered by some taste, <a href="http://www.yoyohoneysingh.com/">timeless music</a> and the spirit of Bombay. </span></div> </div> <!--?php <br ?-->} remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 ); remove_action( 'genesis_footer', 'genesis_do_footer' ); remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 ); add_action( 'genesis_after', 'bg_footer' );
FWIW, this is how my header is coded...
//ADMIN: Add the top navigation function topnav() { echo ' <div id="topnav"> <div class="wrap"><span class="left"><span class="from-the-blog">Like reading here?</span><a class="twitter-follow-button" href="https://twitter.com/cityslickin" data-show-count="false" data-size="medium">Follow @cityslickin</a> <script type="text/javascript">// <![CDATA[ !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs"); // ]]></script></span><span class="right"><a class="first" href="http://www.cityslick.in">Home</a><a href="http://cityslick.in/about-us//">About Us</a><a href="http://cityslick.in/get-in-touch/">Get in Touch</a></span></div> </div> '; } add_action( 'genesis_before', 'topnav' );
January 28, 2013 at 12:42 pm #15600AnitaKeymasterLooks like some of your some of your code is missing the - opening "".
Love coffee, chocolate and my Bella!
January 28, 2013 at 12:59 pm #15606manavecplanMemberEh? Which bits Anita? Can't seem to pick it up... 🙁
Weirdly enough, the CSS for #topnav and #footer is EXACTLY the same. Yet, the difference exists...
January 28, 2013 at 1:44 pm #15625AnitaKeymasterOh the opening and closing bracket
<
and>
. Look in your code and there are some that are missing.
Love coffee, chocolate and my Bella!
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.