Tagged: title
Situation: I’m using a child theme. I’m using the classic editor for most pages. I have thousands of pages so it needs to be automatic.
It seems very simple.
I want to have the title of the page moved from the header area to above the main content, so next to the sidebar, and I want to style it in a certain way (like on the screenshot)
Hey sudhafen,
Try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:
function custom_script() { ?>
<script>
(function($){
$('.page .main-title.entry-title ').detach().insertBefore('.template-page.content .post-entry');
})(jQuery);
</script>
<?php
}
add_action( 'wp_footer', 'custom_script', 99 );
Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
Best regards,
Mike