Custom Attachement Template + Sidebar
-
Hello there,
I have created a custom template for audio mime types (audio.php) with various functions. i Have copied basics from single.php like header, content and footer and sidebar. Now my questoin is everytime i open audio attachement file page, Sidebar is displayer below content instead of right side.
On all other place it is working perfectly but only when it comes to audio.php it is showing below content.
/** * The Template for displaying all single posts. * * @package GeneratePress */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } get_header(); ?> <div <?php generate_do_attr( 'content' ); ?>> <main <?php generate_do_attr( 'main' ); ?>> MY CODES AS IN VARIOUS WORDPRESS FUCNTIONS <?php /** * generate_after_primary_content_area hook. * * @since 2.0 */ do_action( 'generate_after_primary_content_area' ); generate_construct_sidebars(); get_footer();
Please check and help me to display sidebar on right side for audio.php
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Custom Attachement Template + Sidebar’ is closed to new replies.