• OK. Somehow, I managed to find a way to make the tagline appear in Annotum Theme, thus:

    http://www.mikeperazzetti.com

    However, I m\y have inadvertently deleted an item of code because there is now an excessive amount of space between the header and the tagline.

    Does anyone have any ideas or the php code (and where) to right this again so it looks normal. I would be most grateful because my last resort at this point is to delete all the files from the file manager and start over with a new installation and start this over from scratch.

    I really,- really do not want to do that after all of the work setting this up. I am almost done!

    Thanks,

    Mike

Viewing 15 replies - 1 through 15 (of 40 total)
  • It’s due to the padding (the 35px) in this CSS code — line 78

    #site-name {
        font-size: 36px;
        font-weight: normal;
        line-height: 1.2;
        padding: 35px 0 8px;
        text-shadow: 0 1px 0 rgba(0, 0, 0, 0.8);
    }

    BUT whatever you did gave the same ID #site-name to both the h1 and h2 tags – -which is not allowed per coding rules. You can only have one instance of an ID on a page. So you’ll want to go back and fix that. You should be able to download a new copy of the theme and then look at the header.php file — and compare that to yours.

    But really you SHOULD be using a child theme to make changes — otherwise you will lose all the changes when WP or the theme is updated…

    Thread Starter mikeperazzetti

    (@mikeperazzetti)

    Unfortunately, I do not have access to that CSS code or file to add that code. It is not in the Style.css sheet I have and that is the only CSS page that I have.

    Not allowed per coding rules? Please explain. I have been trying to find a way to make the tagline visible and I finally found it. If I replace it with the old code, I defeat the whole purpose of my quest.

    If you can help me fix the php code in the header so that there is less padding between the Title and the tagline AND not violate any WordPress laws in the process, then I am game.

    It’s not a WP rule — but a CSS standards rule! If you post the header.php file, I’ll look at it — though I’m not a php expert by any means. It’s likely just a matter of adding a different ID and adding a corresponding CSS declaration.

    Thread Starter mikeperazzetti

    (@mikeperazzetti)

    Thank you. Here it is below. Otherwise I have about given up on a separate line for the tagline. I do not intend to pay for an upgrade for one simple line of code and then keep paying yearly.

    http://pastebin.com/vVKZYcs5

    I’ll look at it — copied it off here because you are not supposed to post more than ten lines of code — to do so, use Pastebin. So edit your post — or a moderator will do it for you!

    Thread Starter mikeperazzetti

    (@mikeperazzetti)

    What is pastebin and how do I find it?

    Okay, not totally sure this will work, so before you change the current file, make a copy of it.

    So put this piece of code just below the line that starts with

    <body
    REMOVE THE EXISTING CODE IN THIS SECTION


    UP TO

    THIS NEXT LINE:

    <nav id=”secondary-nav” class=”clearfix”>

    <header id="header" class="act">
    		<div class="header-body">
    			<div class="in">
    				<?php if (anno_has_header_image()): ?>
    					<h1 id="site-name"><a href="<?php echo home_url(); ?>/" title="Home" rel="home"><?php anno_header_image(); ?></a></h1>
    					<h2 id="tagline">An Analysis of Influence</h2>
    				<?php else: ?>
    					<h1 id="site-name"><a href="<?php echo home_url(); ?>/" title="Home" rel="home"><?php bloginfo('name') ?></a></h1>
    					<h2 id="tagline">An Analysis of Influence</h2>
    				<?php endif; ?>

    See if it works and then we can add CSS if needed…

    See this re: pastebin — maybe read the rest too!

    Thread Starter mikeperazzetti

    (@mikeperazzetti)

    Thank you. It wqorked up to a point- How do I increase the font size so that it is a little more balanced?

    Cool.

    So now, in the style.css, put this:

    .tagline {
         28px;
         padding: 5px 0 10px 0;
    }
    Thread Starter mikeperazzetti

    (@mikeperazzetti)

    Thank you, but thaty did not work. The font size is still the same. I do not have access to changing the style.css file, I believe, without paying fees. I would have to do it in the php file.

    No, all WP.ORG themes are fully editable. You are thinking of the Annotum WP.COM version — on WP.COM, any CSS editing requires a paid upgrade. No theme can be posted on WP.ORG repository if it requires money for changing the CSS.

    Thread Starter mikeperazzetti

    (@mikeperazzetti)

    I have not accessed the editor from that link. I have only seen style.css at the back end of the site and that file has next to nothing. Thank you. How do access this to fix it and where?

    Look at my post above the most recent one — the linked page explains how to do this:

    Admin screen –> Appearance –> Editor –> on the left side there should be the files you can edit. Open the CSS one.

    (If it is not there, we can do it from back-end…but it should be there.) And yes, it’s mostly empty — that’s how this theme is set up. It keeps you from messing with the existing CSS code — but any changes you make in the “blank” file will take precedence over the existing styles so long as the newer is coded correctly.

Viewing 15 replies - 1 through 15 (of 40 total)
  • The topic ‘Too Much Padding in the Header’ is closed to new replies.