WordPress.org

Ready to get started?Download WordPress

Forums

Clicking on blogpost causes messed up markup (11 posts)

  1. Langnek1987
    Member
    Posted 1 year ago #

    Hi all,

    I am using the Modularity Lite theme.

    When I click on a blogpost the widgets in the right sidebar move to the bottom left on the page. Got no clue what is causing it.
    Any solution are much appriciated.

    The website is http://www.andyschoen.com/.

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

  3. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    if this happens with every single post, the error might be in single.php or comments.php of your theme.

    how did you integrate the slider into the single posts?

  4. Langnek1987
    Member
    Posted 1 year ago #

    @WPyogi: how do I fix this?

    @alchymyth: It happens with the all my blogpost (2 in total). I have added the slider in the editor with the standard wordpress "upload/add" button above the buttons from the editor with which you can add multiple images and put them together in a galary.

  5. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    if you have edited single.php in any way, please paste the full code into a pastebin and post the link to it here - http://codex.wordpress.org/Forum_Welcome#Posting_Code

    as far as I could see, there is a </div> too many somewhere before the call of the sidebar.

  6. Langnek1987
    Member
    Posted 1 year ago #

    This is what is in single.php
    Single.php

    What do I need to edit in it?

  7. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    how (through what kind of edits in what template) did you get the slide show to show in single posts (this is not a default for your theme).

  8. Langnek1987
    Member
    Posted 1 year ago #

    I use the plugin RPS Image Gallery. I made no adjustments of this kind to my template.

    But the problem already existed before I added these slideshows to the posts.

  9. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    what is the code in header.php?

  10. Langnek1987
    Member
    Posted 1 year ago #

    header.php

    Is that relevent for something in a blogpost?

    Was the single.php file ok?

  11. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    single.php was OK, as in the original download.

    everything before the sidebar call could be relevant; just checking, as this is not in the original download, it has to be something either through your edits or through added plugins.

    you seem to have replaced the original section in header.php:

    <?php if ( get_theme_mod( 'header_image' ) ) : ?>
    	<div id="header-image">
    	<img src="<?php header_image() ?>" width="950" height="200" alt="" />
    	</div>
    	<?php endif; ?>

    with your <!-- Begin slideshow --> code, with one opening div

    <div id="slideshow">

    and two closing divs

    </div>
    </div>

    your choice:
    remove either line 62 or line 63 of your header.php pastebin code.

Topic Closed

This topic has been closed to new replies.

About this Topic