Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1345267

    Hi Team
    what do I have to set correctly to see the post image in my blog.
    I find this code – but do not know where I can disable this.

    Thanks for help,
    Boni

    .big-preview a{display: block; position: relative; overflow: hidden; }
    .big-preview.single-big{
    padding:0 50px 10px 0;
    }

    #1345297

    Hey lauterkeit,
    I believe that your featured image is not showing due to a script in your child theme functions.php, try looking there, or include admin login in the Private Content area so we can be of more assistance.

    Best regards,
    Mike

    #1345298
    This reply has been marked as private.
    #1345299

    Hi,
    Thanks for the login, the cause was this custom script:

    function metaAfterTitle(){
    ?>
     <script>
     jQuery(".template-blog .post-entry").each(function(i) {
            var postTitle = jQuery(this).find('.blog-categories.minor-meta');
            var metaInfo =  jQuery(this).find('.post-meta-infos');
            jQuery(metaInfo).insertAfter(postTitle);
           });
     </script>
    <?php
    }
    add_action('wp_footer', 'metaAfterTitle');

    I changed it to this:

    function metaAfterTitle(){
    ?>
     <script>
     (function($){
     $(".single-post .post-entry").each(function() {
            var postTitle = $(this).find('.post-title.entry-title ').css({'margin-bottom':'0','padding-bottom':'0'});
            var metaInfo =  $(this).find('.post-meta-infos');
            $(metaInfo).insertAfter(postTitle);
           });
    })(jQuery);
     </script>
    <?php
    }
    add_action('wp_footer', 'metaAfterTitle');

    Please clear your browser cache and check.

    Best regards,
    Mike

    #1345300

    Hi Mike

    Thank you, i see the image now. but the sidebar is no longer placed on the right, but at the bottom – that should not be so. I would also like to have the date directly under the title and not after the text excerpt on the blog. is there an adjustment to this?
    regards, Boni

    #1345302

    Hi,
    I didn’t check the Aktuell page, I was looking at the post that you had originally linked to.
    So to work for both I change to this:

    function metaAfterTitle(){
    ?>
     <script>
     (function($){
    $("article.post-entry").each(function() {
            var postTitle = $(this).find('.post-title.entry-title ').css({'margin-bottom':'0','padding-bottom':'0'});
            var metaInfo =  $(this).find('.post-meta-infos');
    	 $(this).find(metaInfo).insertAfter( $(this).find(postTitle));
           });
    })(jQuery);
     </script>
    <?php
    }
    add_action('wp_footer', 'metaAfterTitle');

    and adding this css for a category was too close the date on the Aktuell page.

    .html_modern-blog #top.page-id-16257 .post-entry .blog-categories {
        top: -15px;
    }

    This script doesn’t affect the sidebar on your Aktuell page, it was down because you have a color section on the page, I disabled the sidebar and added it using the widget element and now it shows correctly, please check.

    Best regards,
    Mike

    #1345303

    Hi Mike
    I don’t understand.
    It worked before with the colour section page.

    And now it’s wrong on all pages.

    I don’t want to change everything.

    I still have the problem that the date appears below the text on the start page for Blog Slider.
    But it should be placed directly under the title.
    Please adjust.

    Regards, Boni

    #1345305

    Hi,
    On the start page was a different element showing the blogs, I adjusted your script so now it works of all three of these situations, do you have any more places that you need to move the date?

    function metaAfterTitle(){
    ?>
     <script>
     (function($){
    $("article.post-entry").each(function() {
            var postTitle = $(this).find('.post-title.entry-title ').css({'margin-bottom':'0','padding-bottom':'0'});
            var metaInfo =  $(this).find('.post-meta-infos');
    	 $(this).find(metaInfo).insertAfter( $(this).find(postTitle));
           });
    $("article.slide-entry").each(function() {
            var slideTitle = $(this).find('.slide-entry-title.entry-title').css({'margin-bottom':'0','padding-bottom':'0'});
            var slideMeta =  $(this).find('.slide-meta').css({'margin-top':'0','padding-top':'0'});
    	 $(this).find(slideMeta).insertAfter( $(this).find(slideTitle));
    });
    })(jQuery);
     </script>
    <?php
    }
    add_action('wp_footer', 'metaAfterTitle');

    As for your sidebar, you are correct this should work, I copied your page /medien/ to my test site and the sidebar show as on your live site, but on your staging site the page structure is not correct, the sidebar is outside the #main div, so there is a conflict somewhere that is not on your live site.
    How did you copy your site to the staging site?
    Typically this kind of error is due to unclosed tags or html in title fields which can be hard to find, when did you notice this error? Do you remember what you were working on?
    Try disabling all of your plugins. If that resolves the issue, reactivate each one individually until you find the cause.
    If this doesn’t help try creating a second staging site of the original to ensure that this process is not what caused the error.

    Best regards,
    Mike

    #1345328

    good morning/day Mike

    Found out the problem – it’s the WP Typography plugin.

    Kind regards, Boni

    #1345338

    Hi,
    Glad to hear that you have this sorted out, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Preview big : I find this code – but do not know where I can disable this.’ is closed to new replies.