januszewskijarek's Profile
Layers User
14 points

Questions
2

Answers
2

  • Layers User Asked on October 1, 2016 in Customization.

    This is final solution for moving title under the featured image depending it’s on the post archive page (homepage in my case) or single post page, in which previously I added a div with the “swapper” id. I used that method because I also want my title under the top-most object div (zoomify) on single post.

    jQuery(function($) {
        $(document).ready( function() {
            if ($("body").hasClass("home")) {
                jQuery('article').each(function(){
                    jQuery(this).find('header').before(jQuery(this).find('.thumbnail').detach());
                });
            }
            else {
                $('header').insertAfter('#swapper');
            }
        });
    }(jQuery));
     

    Works flawlessly here.

    • 2956 views
    • 2 answers
    • 0 votes
  • Layers User Asked on October 1, 2016 in Customization.

    It seems I have found a working solution. Simple jQuery method:

     jQuery("header").detach().appendTo(".thumbnail");
     
    • 2956 views
    • 2 answers
    • 0 votes