Title: GeneratePress Header
Last modified: December 8, 2022

---

# GeneratePress Header

 *  [robertonieddu](https://wordpress.org/support/users/robertonieddu/)
 * (@robertonieddu)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/generatepress-header/)
 * I have a problem with a site I was given to manage. I didn’t make the site and
   I’m not familiar with generatepress and metaslider.
    Basically a slide was inserted
   with metaslider on the header. As you can see the slide does not fill the header
   container well.
 * Thanks in advance for any kind of help, sorry for the English, I am using a translator
 * I will also transcribe the php code for you:
 *     ```
       <?php
       if(is_front_page()) {
       echo do_shortcode('[metaslider id="8"]');
       echo "<style> .flexslider .slides{height:600px;} </style>";
       }
       $id = get_the_ID();
       if($id==26){
       echo do_shortcode('[metaslider id="25"]');
       }
       if($id==201){
       echo do_shortcode('[metaslider id="334"]');
       }
       if($id==60){
       echo do_shortcode('[metaslider id="336"]');
       }
       if($id==137){
       echo do_shortcode('[metaslider id="338"]');
       }
       if($id==75){
       echo do_shortcode('[metaslider id="557"]');
       }
       ?>
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgeneratepress-header%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [fernandoazarcon2](https://wordpress.org/support/users/fernandoazarcon2/)
 * (@fernandoazarcon2)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/generatepress-header/#post-16273705)
 * Hi [@robertonieddu](https://wordpress.org/support/users/robertonieddu/),
 * How are you adding that code? It’s currently added inside the header along the
   logo which is causing the issue.
 * How should the logo and this slider appear?
 *  Thread Starter [robertonieddu](https://wordpress.org/support/users/robertonieddu/)
 * (@robertonieddu)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/generatepress-header/#post-16275205)
 * Hi [@fernandoazarcon2](https://wordpress.org/support/users/fernandoazarcon2/)
   Right now the php is embedded in the header.
    I will try to remove the logo
 *  [fernandoazarcon2](https://wordpress.org/support/users/fernandoazarcon2/)
 * (@fernandoazarcon2)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/generatepress-header/#post-16279712)
 * I see. You could do that, or, if you have GP Premium, you can hook it after the
   Header to avoid the issue.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘GeneratePress Header’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/generatepress/3.6.1/screenshot.
   png)
 * GeneratePress
 * [Support Threads](https://wordpress.org/support/theme/generatepress/)
 * [Active Topics](https://wordpress.org/support/theme/generatepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/generatepress/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/generatepress/reviews/)

## Tags

 * [header](https://wordpress.org/support/topic-tag/header/)

 * 3 replies
 * 2 participants
 * Last reply from: [fernandoazarcon2](https://wordpress.org/support/users/fernandoazarcon2/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/generatepress-header/#post-16279712)
 * Status: not resolved