• Somebody please help me to assign a padding to both the Bottom and the top of the fullwidth template i have created in my twenty eleven theme to enable close the gap between menu bar and page titel(home).Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • You’ll need to post a link to your site for help with CSS issues. Also be sure you are using a child theme for any modifications to a default theme.

    Thread Starter richame

    (@richame)

    THIS IS MY Custom Yessidebar.php in my Twenty eleven theme
    <?php
    /**
    * Template Name: Yessidebar
    * Description: A Page Template that adds a sidebar to pages
    *
    * @package WordPress
    * @subpackage Twenty_Eleven
    * @since Twenty Eleven 1.0
    */

    get_header(); ?>

    <div id=”primary”>
    <div id=”content-yessidebar” role=”main”>

    <?php while ( have_posts() ) : the_post(); ?>

    <?php get_template_part( ‘content’, ‘page’ ); ?>

    <?php comments_template( ”, true ); ?>

    <?php endwhile; // end of the loop. ?>

    </div><!– #content –>
    </div><!– #primary –>

    <?php get_footer(); ?>

    AND THIS IS MY CSS FILES IN MY CHILD THEME TWENTY ELEVEN

    #content-yessidebar {
    width:1000px;
    float:left;
    background-color:red;
    }

    SOMEBODY PLEASE HELP ME WITH THE RIGHT CODE TO USE TO CONTROL THE PADDING TO THE right,letf,bottom and top of my twenty eleven theme.AM very much confuse and am beginning to hate wordpress for giving me a rough and tough time trying to control my padding to enable my content to fit into my site.Thanks in Advance!!!!!

    You’ll need to post a link to your site for help with CSS issues

    Sorry, looking at PHP code does not give enough information to help with CSS. Try using a browser tool such as Firebug to work with CSS if you can’t post a link to it.

    And please do not post in all caps here- it’s considered yelling. These forums are staffed by volunteers and help available may not be exactly what you need, sorry.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Yelling at us to help isn’t inviting at all. If you need urgent support, try https://jobs.wordpress.net .

    Thread Starter richame

    (@richame)

    I am very much grateful for your quick response but in anyway i believe you already know and very much aware of the white space around twenty eleven theme site content which can be remove by using a padding element (typical example is what i have realise on this site http:/make.www.ads-software.com).
    You can see for yourself the space around the text on the site homepage and that is the space i want to minimize on my site to as well.I know am disturbing but the fact is that i dont have any idea about css,html,php so the only customization i want to do on the twenty eleven theme is to remove those gap or space around my site content to enable my content to be closer to the site margin.
    Please just have that golden heart and assist me.Thanks in advance.

    Thread Starter richame

    (@richame)

    Hello Andrew Nevins,please forgive my manners,just that i have been searching this forum,youtube and everywhere searchable without any straight forward answer for almost a week now.And now am just too tired and confuse not knowing what to do.

    In a typical twentyeleven, this should do it:

    .singular.page .hentry, .singular .hentry {
        padding: 0;
    }

    If that does not work, download Firebug and learn how to use basic CSS is the best advice we can give you.

    Or post a link to your site.

    Thread Starter richame

    (@richame)

    Hello WPyogi,i want to thank you once again for your quick response and even though i couldn’t get my problem resolved i still want to continue to get a new subdomain and install the twenty eleven theme and try implementing the codes you have giving me without touching any other codes.Secondly i have been using firebug for four months now but i just can’t use it to solve this issue.Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Padding to both the top and bottom of my fullwidth template in twenty eleven’ is closed to new replies.