WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] latesr posts on index page (no style) (14 posts)

  1. Alex
    Member
    Posted 4 years ago #

    Theme: Schemertype (http://www.bestwpthemez.com/wordpress/schemertype-mag-left-right-sidebars-3-columns-wordpress-theme-2416/)

    Ltest posts on index page are not styled (no lists, paragraphs, etc), just a plain text. Is there any solution for this?
    Thanks in advance.

  2. pavy
    Member
    Posted 4 years ago #

    Can you post a link to your problem, so we can see the un-styled recent posts?

  3. Alex
    Member
    Posted 4 years ago #

    it's on localhost....

  4. Alex
    Member
    Posted 4 years ago #

    but when I click on the title and open up the post, everything is ok.

  5. pavy
    Member
    Posted 4 years ago #

    Load the page into your browser, check the head of the document to see if all stylesheets have the correct path. Also, if you're using Firefox, install the Firebug plugin and you can directly inspect the code (css, html, etc) of any element on the page by simply hovering over that element. This will show you what CSS is attached to the element, if the CSS is being overridden by something else and so on. Hard to be more specific without being able to see it.

    Also, have you tried upload a fresh version of the theme, to see if it works as it was when you downloaded/installed it?

  6. Alex
    Member
    Posted 4 years ago #

    I'll try that, thanks
    I don't want to install new version of the theme (if there is one) because I edited it already. I also use qtranslate plugin for multilingual support.

  7. pavy
    Member
    Posted 4 years ago #

    Not familiar with the plugin, but I wouldn't think that'd cause any issues. With that said, as I said in the previous post, I would check to ensure the styles are being loaded via the stylesheet...is that plugin overwriting the content on the home page? Try disabling the plugin and see what happens.

  8. Alex
    Member
    Posted 4 years ago #

    css is ok, I checked everything... there are still lists, etc.

  9. Alex
    Member
    Posted 4 years ago #

    when I add image to a post, it won't be visible until I open the post.

  10. esmi
    Theme Diva & Forum Moderator
    Posted 4 years ago #

    css is ok, I checked everything... there are still lists, etc.

    How do you know it's OK? How did you check it? Lists are created by markup, so they don't rely on CSS.

  11. Alex
    Member
    Posted 4 years ago #

    ok, so how do I check it? please help!!!

  12. esmi
    Theme Diva & Forum Moderator
    Posted 4 years ago #

    As pavy said, if you're using Firefox, install Firebug. Also check your CSS for any errors using the CSS Validator.

    Check the your markup of your posts page (presumably index.php) using the W3C Validator. Run the page on localhost, view the page source, copy it and drop it into the validator's Direct Input box.

  13. Alex
    Member
    Posted 4 years ago #

    Solved, instead of

    <a href="<?php the_permalink(); ?>"><?php dp_attachment_image($post->ID, 'thumbnail', 'alt=""' . $post->post_title . '"'); ?></a>
    		<a href="<?php the_permalink(); ?>" class="title"><?php the_title(); ?></a>
    		<?php echo dp_clean ($post->post_content, false); ?>
    		<a class="more" href="<?php the_permalink(); ?>">more</a>

    I made next :

    <a href="<?php the_permalink(); ?>"><?php dp_attachment_image($post->ID, 'thumbnail', 'alt=""' . $post->post_title . '"'); ?></a>
    		<a href="<?php the_permalink(); ?>" class="title"><?php the_title(); ?></a>
    		<?php the_content() ?>

    Thank you all for replies.

  14. beheader69
    Member
    Posted 4 years ago #

    hey
    I want to keep the line
    <?php echo dp_clean ($post->post_content, 400); ?>
    because i want a limit of chars, but I would like text formating.
    how do I do that? pls

Topic Closed

This topic has been closed to new replies.

About this Topic