WordPress.org

Ready to get started?Download WordPress

Forums

Customizr
[Customizr] Adding content before footer and minor adjustements (3 posts)

  1. aurendil
    Member
    Posted 7 months ago #

    Hello,
    I've managed to include content before the footer on my site (http://paratudo.org.br) by adapting a code snippet for the header. Here's the code placed in the functions.php:

    add_action ('__before_footer' , 'add_content_before_footer', 0);
    function add_content_before_footer() {
    //checks if we are displaying the home page
    if ( !tc__f( '__is_home' ) )
    return;
    ?>
    <div id="my-footer-header">
    <div class="row-fluid">
    <div class="span8 text-center">
    <?php
    printf('<h1>%1$s</h1>',
    __('<div style="width:1850px; margin-left:auto; margin-right:auto;"><img src="http://www.paratudo.org.br/wp-content/uploads/2013/11/barra-de-logos-pra-site2.png" border="0" alt="" /></div>')
    )
    ?>

    </div>

    </div>
    </div>
    <?php
    }`

    Although it worked, I'd like to know if there is a better solution. I think the one I found is causing this little and (for me) unsolvable problem: Unless I specify the size via <div>, the image for the site sponsors keeps getting resized to a smaller size. And by locking the img size it's no longer responsive as the other elements.

    Is there a way around this? Thanks in advance.

  2. CrouchingBruin
    Member
    Posted 7 months ago #

    Try changing this line:

    <div class="span8 text-center">

    to this:

    <div class="span12 text-center">

    and change width:1850px to width:100%.

  3. aurendil
    Member
    Posted 7 months ago #

    It worked :)
    Thanks, friend.

Reply

You must log in to post.

About this Theme

About this Topic