Blog post not responding to CSS
-
I’m currently trying to set up a blog using wordpress, and it’s connecting to the stylesheet, but the only thing that doesn’t seem to work is the post content / page content. I’ve been trying to work it out for days, does anyone know what the issue could be ? The blog is located at frodshamweb.co.uk/blog/ and it’s the “This is your first post” part that I can’t for the life of me change !!
-
What is it that isn’t working?
Have you tried:
– deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).
– switching to the default theme to rule out any theme-specific problems.
– resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.
I can’t change the style of the post’s content, i’ve tried changing the body, all the divs that it’s in and the p but nothing will work !
I have no plugins active and the only plugins uploaded are the existing ones
thanks for your help so far
this is an odd post content (from the html in the browser) – I am actually not sure what part the actual content is and what part comes from the theme:
<p="standardtext"><p>Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!</p> </p>what styles exactly have you edited to change the content?
what is the full code of the index.php (?) template?
see also validation report:
I’ve changed the standard text class, and all the divs that surround it
Index.php:
<?php get_header(); ?> <p> </p> <?php if ($posts) : foreach ($posts as $post) : start_wp(); ?> <!-- This is the title of your blog --> <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title('<h1>', '</h1>'); ?></a><br /> <!-- The date you posted the blog --> <h3 style="text-decoration: none;">Posted on the <?php the_time('jS')?> of <?php the_time('F')?>, <?php the_time('Y') ?>.</h3><br> <!-- The contents of your blog goes here --> <p="standardtext"><?php the_content(); ?></p> <?php wp_link_pages(); ?> <!-- This is the comments link --> <div><?php comments_popup_link('No Comments.', '1 Comment.', '% Comments.'); ?></div> <br /> <br /> <br /> <?php comments_template(); // Get wp-comments.php template ?> <?php endforeach; else: ?> <p> <?php _e('Sorry, no posts matched your criteria.'); ?> </p> <?php endif; ?> </div> <!-- This closes the 'lefttext' div. --> <?php get_sidebar(); ?> <?php get_footer(); ?>I’m doing it as a favour for a friend as they’re not familiar with WordPress so i’m not too familiar with his style of coding, but i don’t understand why it’s so difficult! i’ve even tried wrapping it in a new div and changing the style of that but it still won’t work
this is an extreme syntax error:
<p="standardtext">so you might want to start with a tutorial to learn the basics:
Ah that was an error as i’d been experimenting with divs and different things, it’s correct now but still no luck !
The standardtext class currently looks like this:
.standardtext { font-size: 30px; font-family: Calibri, "Trebuchet MS", Arial; line-height: 18px; color: #FFF;}But it displays as black, a smaller size and different font. I’ve tried styling the divs and such that are wrapped around the p element containing the post content but it just won’t work ! I have no idea what the problem could be !
you have a html validation conflict with your
<p class="standardtext">tag wrapping<?php the_content(); ?>because the content itself is wrapped in a paragraph tag (done by one of the filters associated with ‘the_content’):from the html in the browser:
<p class="standardtext"><p>Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!</p> </p>Thanks, but the font still won’t change. The size and colour will though ?!
Actually just the colour will ! The font and size won’t
The code is now as follows
<div class="standardtext"><?php the_content(__('<br>Read more..'));?></div>The issue resides in CSS specificity.
These forums aren’t meant to teach you CSS.Please use CSS forums such as http://csscreator.com/forum to discuss these CSS-specific issues.
But I’ve tried everything ! Styling all of the wrapping divs, making new divs, new everything and nothing works
The topic ‘Blog post not responding to CSS’ is closed to new replies.