Switcher disapears in attachment page
-
My polylang switcher disapears from navbar in attachment page. In other pages it works flawlessly. I am adding a switcher to navbar by using a filter in functions.php class. My attachment page code looks as simple is this:
<?php /** * The attachment page. */ get_header(); ?> <div class="container custom-content"> <div class="row"> <div class="col-lg-6 col-sm-6 col-md-6 col-xs-12"> <?php $image_attributes = wp_get_attachment_image_src( get_the_ID(), 'full' ); // returns an array if( $image_attributes ) { ?> <img class="img-responsive custom-image-shadow" src="<?php echo $image_attributes[0]; ?>" > <?php } ?> </div> <div class="col-lg-4 col-sm-5 col-md-5 col-xs-12 col-sm-offset-1 col-md-offset-1 col-lg-offset-1"> <?php $attachment_meta = wp_get_attachment(get_the_ID()); ?> <?php echo $attachment_meta['description']; ?> </br> </div> </div> </div> <?php get_footer(); ?>
some screenshots to represent my problem:
<img src=’https://s23.postimg.org/cgwfo7fs7/menu1.jpg’ border=’0′ alt=”menu1″ /><img src=’https://s24.postimg.org/ujsq7f4bl/menu2.jpg’ border=’0′ alt=”menu2″ />
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Switcher disapears in attachment page’ is closed to new replies.