Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1329068

    I currently using Magazine to display posts from a custom taxonomy. I noticed that it puts the title below the date, author, tags, categories etc. Is there a way to display the title of post and then rest of the info.

    #1329096

    Hey AddonDigital,

    Thank you for the inquiry.

    You can use this code in the functions.php to move the magazine post title above the time info.

    // move the magazine title to the top
    function ava_custom_script_move_mag_title(){
    	?>
    	<script>
    	(function($) {
    		$(document).ready(function() {
    			$(".av-magazine-entry").each(function() {
    			var title = $(this).find(".av-magazine-title");
    			var time = $(this).find(".av-magazine-time ");
    			title.insertBefore(time); 
    			});
    		});
    	})(jQuery);
    	</script>
    	<?php
    	}
    add_action('wp_footer', 'ava_custom_script_move_mag_title');
    

    Please make sure to purge the cache before testing the page.

    Best regards,
    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.