• Resolved Jackflash101

    (@jackflash101)


    We have created a banner to show up at the top of all the pages. Right now though, it only shows up on Home page. Any settings I need to change?? Great theme with awesome options!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • You can cut and paste some coding to show them on all the pages…

    Open front-page.php in a text editor and cut code below and paste it in header.php page below the </header> tag. Save it and you’re good to go.

    This worked for me.:

    <?php  global $smof_data; ?>
          <?php if(isset($smof_data['mobile_slider'])) {
            $mobile_slider = $smof_data['mobile_slider'];
          } else {
            $mobile_slider = '';
          }
          if(isset($smof_data['choose_slider'])) {
            $slider = $smof_data['choose_slider'];
          } else {
            $slider = 'mock_flex';
          }
          if(detect_mobile() && $mobile_slider == '1') {
            $slider = $smof_data['choose_mobile_slider'];
               if ($slider == "flex") {
              get_template_part('templates/mobile_home/mobileflex', 'slider');
            }
            else if ($slider == "video") {
              get_template_part('templates/mobile_home/mobilevideo', 'block');
            }
      } else { ?>
            <?php if ($slider == "flex") {
              get_template_part('templates/home/flex', 'slider');
            }
            else if ($slider == "thumbs") {
              get_template_part('templates/home/thumb', 'slider');
            }
            else if ($slider == "fullwidth") {
              get_template_part('templates/home/fullwidth', 'slider');
            }
            else if ($slider == "video") {
              get_template_part('templates/home/video', 'block');
            }
            else if ($slider == "mock_flex") {
              get_template_part('templates/home/mock', 'flex');
            }
    }?>

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    Thread Starter Jackflash101

    (@jackflash101)

    Hey, thanks so much, worked like a charm !

    Wish though they had designed this to be easily done using Theme Options.

    You can always create a page with featured content by using the featured content template with it you can add an image or slider at the top.

    As for a banner we may add it to the options in the next couple releases.

    Kadence Themes

    The new version has a site-wide banner option in the theme options, it’s still waiting on WordPress approval but you can download here:

    http://wordpress.org/themes/download/virtue.1.3.5.zip

    Kadence Themes

    Thread Starter Jackflash101

    (@jackflash101)

    Awesome….will have to check it out. Thanks again!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Have Banner on all pages’ is closed to new replies.