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…
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.
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!
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!
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;
}
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.
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.