Support » Theme: Tonal » IMAGE POSTS – Change header placement back to top of content

  • Resolved dasickan

    (@dasickan)


    Hi,
    firstly thank you for a great theme. Yay!

    I need some help though:
    When I write a blog post and choose the image or gallery format before publishing, the header (title/headline/H1) of the post is moved from the top of the post to below the image itself. (Unlike the other formats where the title is above the content of the post. Like it should be.)

    That bugs me quite a lot 😉

    Is there anyway you can help me to fix this?
    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • I found a way to get past this, but don’t know if it’s the best way.
    If anyone can come up with a better solution then please let me know.
    Thanks!

    Found this code in tonal.js and just removed/deleted the bold text shown below.
    /** A function to move the image above the entry-title if post format is image. * A function to move the video above the entry-title if post format is video. */
    function post_format() {
    var image = $(‘.format-image.hentry img’),
    video = $(‘.hentry.format-video .jetpack-video-wrapper’);

    image.each(function() {
    $(this).first().prependTo($(this).closest(‘.format-image.hentry‘));
    $(this).addClass(‘active’);
    $(this).show();
    });

    video.each(function() {
    $(this).first().prependTo($(this).closest(‘.hentry.format-video‘));
    $(this).addClass(‘active’);
    $(this).show();
    });
    }
    $(window).load(post_format);
    $(document).on(‘post-load’, post_format);

    @dasickan, I don’t see anything wrong with what you have done.

    Awesome!
    🙂

    Moderator Kathryn

    (@zoonini)

    Automattic Happiness Engineer

    Glad you’re all set! Just in case you haven’t set one up already, I’d suggest you make this change in a child theme. If you edited the theme files themselves, your changes will be overwritten every time you update the theme to the latest version. Here are some guides in case you haven’t made one before:

    http://codex.wordpress.org/Child_Themes
    http://op111.net/53/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘IMAGE POSTS – Change header placement back to top of content’ is closed to new replies.