Tagged: , ,

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #352922

    Hi
    I have the same issue as this user but can’t seem to solve it or find a solution.

    https://kriesi.at/support/topic/bug-report-blog-post-titles-are-centered-when-using-no-sidebar/

    Please help.

    Thanks

    Simon

    #353180

    Hi Simon!

    Please add following code to Quick CSS in Enfold theme options under General Styling tab

    #top .fullsize .template-blog .post-title, #top .fullsize .template-blog .post-meta-infos { text-align: left; }

    Cheers!
    Yigit

    #353215
    This reply has been marked as private.
    #353288

    Hi!

    It seems like you have changed blog layout. Please post a screenshot and show the changes you would like to make.

    Cheers!
    Yigit

    #353352
    This reply has been marked as private.
    #353745

    Hi!

    Please add this on functions.php:

    function avf_blog_style() { ?>
    <script>
    (function($){
        $(window).load(function() {
    		var blog = $(".template-blog").length;
    		if(blog) $(".main_color.container_wrap").removeClass('fullsize');
        });
    	
    })(jQuery);
    </script>
    <?php
    }
    
    add_filter('wp_footer', 'avf_blog_style', 10);

    Remove browser cache then reload the page. There will be a bit of delay but it will work.

    Regards,
    Ismael

    #355885
    This reply has been marked as private.
    #357148

    Hey!

    your blog looks exactly as in your screenshot. Everything seems fine to me now. Could you fix it?

    Regards,
    Andy

    #357186

    Hi Andy,

    The format is right, but if you refresh the page, you’ll see that the content jumps from the center to the left – can you see that?

    best

    Simon

    #359163

    Hey Simon!

    That’s happening because Ismael’s solution applies when the page loads via JavaScript, not sure if this would work but you can try changing the code to this:

    function avf_blog_style() { ?>
    <script>
    (function($){
    	var blog = $(".template-blog").length;
    	if(blog) $(".main_color.container_wrap").removeClass('fullsize');
    })(jQuery);
    </script>
    <?php
    }
    
    add_filter('wp_footer', 'avf_blog_style', 10);

    Cheers!
    Josue

    #359576

    That works – brilliant – thank you SO much.

    best,

    Simon

    • This reply was modified 10 years ago by friendlier.
Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Blog layout – sidebar issue’ is closed to new replies.