Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #323627

    Hello,

    I’ve just updated our theme. At the time, you really helped me with this post: https://kriesi.at/support/topic/move-featured-image-below-post-title-date-etc/#post-185070

    All worked fine, until the update. Now, when I go to the single post page, the title is once again underneath the featured image.

    Here, it’s fine: http://www.targettraining.eu/blog/
    But here, it’s not: http://www.targettraining.eu/emails-effective-subject-lines/

    I’ve checked and doublechecked the instructions you gave me last time. I’ve also tried changing the loop-index.php as per a different post I found on the forum. That inverted the problem, and it was out of aligment. So I changed that back.

    Can you help me out with this one more time?

    Thanks in advance, as always.
    Brenda

    #324033

    Hi Brenda,

    Discard my previous solution, instead try adding this code at the very end of your theme / child theme functions.php file:

    function add_custom_script(){
    if(is_singular('post')){
    ?>
    <script>
    (function($){
        $(window).load(function() {
        	$('article.post').each(function(){
               $(this).find('.entry-content-header').after($(this).find('.big-preview').detach());
            })
        });
    })(jQuery);
    </script>
    <?php
    }
    }
    add_action('wp_footer', 'add_custom_script');

    Regards,
    Josue

    • This reply was modified 10 years, 1 month ago by Josue.
    #324148

    Hi Josue,
    That does the job. Thanks a lot!
    Brenda

    #324153

    Hey!

    Glad we could help you.

    Enjoy the theme.

    Regards,
    Günter

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘title above featured image on single post page’ is closed to new replies.