Footer Nav

This topic is: not resolved

This topic contains 5 replies, has 3 voices, and was last updated by  anitac 1 year, 2 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #15416

    manavecplan
    Participant
    Post count: 12

    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>&copy; 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…

    #15429

    Zach Russell
    Participant
    Post count: 34

    The 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 Group

    #15598

    manavecplan
    Participant
    Post count: 12

    That’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' );
    
    #15600

    anitac
    Participant
    Post count: 6383

    Looks like some of your some of your code is missing the – opening “”.


    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me! | Plus Me!
    When asking for help, please provide a link or screen shot showing your problem!

    #15606

    manavecplan
    Participant
    Post count: 12

    Eh? 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…

    #15625

    anitac
    Participant
    Post count: 6383

    Oh the opening and closing bracket < and >. Look in your code and there are some that are missing.


    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me! | Plus Me!
    When asking for help, please provide a link or screen shot showing your problem!

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.