• Resolved yuedesign

    (@yuedesign)


    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 !!

Viewing 15 replies - 1 through 15 (of 19 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    What is it that isn’t working?

    esmi

    (@esmi)

    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.

    Thread Starter yuedesign

    (@yuedesign)

    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 !

    Thread Starter yuedesign

    (@yuedesign)

    I have no plugins active and the only plugins uploaded are the existing ones

    thanks for your help so far

    Michael

    (@alchymyth)

    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:

    http://codex.wordpress.org/Validating_a_Website

    Thread Starter yuedesign

    (@yuedesign)

    I’ve changed the standard text class, and all the divs that surround it

    Index.php:

    <?php get_header(); ?>
    
      <p>&nbsp;</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

    Michael

    (@alchymyth)

    this is an extreme syntax error:

    <p="standardtext">

    so you might want to start with a tutorial to learn the basics:

    http://www.w3schools.com/

    Thread Starter yuedesign

    (@yuedesign)

    Ah that was an error as i’d been experimenting with divs and different things, it’s correct now but still no luck !

    Thread Starter yuedesign

    (@yuedesign)

    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 !

    Michael

    (@alchymyth)

    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>
    Thread Starter yuedesign

    (@yuedesign)

    Thanks, but the font still won’t change. The size and colour will though ?!

    Thread Starter yuedesign

    (@yuedesign)

    Actually just the colour will ! The font and size won’t

    Thread Starter yuedesign

    (@yuedesign)

    The code is now as follows

    <div class="standardtext"><?php the_content(__('<br>Read more..'));?></div>
    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    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.

    Thread Starter yuedesign

    (@yuedesign)

    But I’ve tried everything ! Styling all of the wrapping divs, making new divs, new everything and nothing works

Viewing 15 replies - 1 through 15 (of 19 total)

The topic ‘Blog post not responding to CSS’ is closed to new replies.