Viewing 13 replies - 1 through 13 (of 13 total)
  • Hi,

    Just use this code to display slider on header file

    <?php echo do_shortcode( '[URIS id=654]' ); ?>

    use your own slider id=xxx

    Thanks

    Thread Starter sindre7

    (@sindre7)

    Hey weblizar, thanks for your quick responds.

    Are you talking about the header.php file in my theme folder?
    If so, where do I put the code, and do I need to delete any existing code?

    Thanks

    Yes, i have talking about this, but there you have no need to delete any existing code.

    Just add that php code on that position there you want to display your slider.

    Thanks

    Thread Starter sindre7

    (@sindre7)

    This is the code for my header.php file included for my theme.

    I do not see any logical place to put this code.. can you please advice?

    `<?php
    /**
    * The Header for our theme
    * @package lavish
    * @since 1.0.0
    */
    ?>
    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta http-equiv=”X-UA-Compatible” content=”IE=edge” charset=”<?php bloginfo( ‘charset’ ); ?>”>
    <meta name=”viewport” content=”width=device-width, initial-scale=1″>
    <title><?php wp_title( ‘|’, true, ‘right’ ); ?></title>
    <link rel=”profile” href=”http://gmpg.org/xfn/11″&gt;
    <link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>”>
    <link rel=”shortcut icon” href=”<?php echo get_stylesheet_directory_uri(); ?>/favicon.ico” />

    <?php wp_head(); ?>

    </head>
    <body <?php body_class(); ?>>
    <?php
    /*
    =================================================
    Move to Top Display
    =================================================
    */
    do_action (‘lr_move_to_top’, ‘lavish’);
    /*
    =================================================
    Fr Wrapper Choose
    =================================================
    */
    do_action(‘lr_wrapper_choose’,’lavish’);

    /*
    =======================================================
    Fr Header Display with logo and Menu and Search Icons
    =======================================================
    */
    do_action(‘lr_header’,’lavish’);

    $header_style = ”;
    if (get_theme_mod(‘header_style’) == ‘two’) {
    $header_style = ‘two’;
    }
    ?>

    <aside id=”la-banner” class=”lr_responsive_banner <?php echo $header_style?>” style=”background-color: <?php echo get_theme_mod( ‘header_bg’, ‘#EAEAEA’ ); ?>; <?php if ( get_header_image() ) : ?>background-image: url(<?php header_image(); ?>);<?php endif; ?><?php if( get_post_meta($post->ID, ‘header_background’, true) ) { ?> background-image: url(<?php echo esc_url (the_field(‘header_background’)); ?>); <?php } ?> color: <?php echo get_theme_mod( ‘banner_text_colour’, ‘#ffffff’ ); ?>;”>

    <?php get_sidebar( ‘banner’ ); ?>

    </aside>

    <?php do_action(‘style_breadcrumb’); ?>

    <?php get_sidebar( ‘cta’ ); ?>

    Can you share me screenshot of you website that where you want to display you slider.

    Thanks

    Thread Starter sindre7

    (@sindre7)

    Can I send you the screenshot to lizarweb@gmail.com?

    Thanks

    Yes you can send me screenshot at lizarweb[at]gmail[dot]com

    Thanks

    Or you can attach image link here using this site – postimg.org

    Thanks

    Hello
    here in the forum I have read that I can use in the header “Ultimate Responsive Image Slider”.
    Unfortunately, I lack the knowledge of where in the Header.php I <? Php echo the entry do_shortcode (‘[URIS id = 123]’); ? Can> make.
    I use as a theme: Fifteen Theme by InkHive.
    There is also a header-single.php. And a custom-header.php

    Thank you for your help

    Only use code like this

    <?php echo do_shortcode('[URIS id = 123]'); ?>

    Thanks

    Thanks,
    but where should I add this code?
    In the Header.php or in the header-single.php. Or in the Custom-header.php

    Insert in that file which is represent your header part.

    Thanks

    Thank you,
    for pointing this out. Will try it.
    sign up again.

    Many thanks

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Insert Image Slider as Header Image’ is closed to new replies.