• Resolved generalbillur

    (@generalbillur)


    Hello there.

    I need help with php. My page theme is Hestia Free. I downloaded the Slider WD pluging and created the slider with 3 pictures. Code is <?php wd_slider(2); ?> . Dont know where to add this. My header.php is like this

    <?php
    /**
     * The template for displaying the header
     *
     * Displays all of the head element and everything up until the page header div.
     *
     * @package Hestia
     * @since Hestia 1.0
     */
    ?><!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset='<?php bloginfo( 'charset' ); ?>'>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="profile" href="http://gmpg.org/xfn/11">
    <?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?>
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
    <?php endif; ?>
    <?php wp_head(); ?>
    </head>
    
    <body <?php body_class(); ?>>
    	<div 
    	<?php
    	if ( ! is_single() ) {
    		echo 'class="wrapper"';
    	} else {
    		post_class( 'wrapper' );
    	}
    
    	$header_class = '';
    	$hide_top_bar = get_theme_mod( 'hestia_top_bar_hide', true );
    	if ( (bool) $hide_top_bar === false ) {
    		$header_class .= 'header-with-topbar';
    	}
    ?>
    >
    		<header class="header <?php echo esc_attr( $header_class ); ?>">
    			<?php do_action( 'hestia_do_header' ); ?>

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello, @generalbillur!

    Thanks for posting your question!

    You can place <?php wd_slider(2); ?> after <body> tag here, wherever you need the slideshow to appear.

    For instance, if you wish to have it under the page header, you can add the PHP function at the very end of this code.

    Cheers!

    Thread Starter generalbillur

    (@generalbillur)

    Thanks for the answer but i have issue. After i add the code at the very end and click on update button, i get “couldnt find page” error. Also for this error, i did not need to enter my code. Is this theme related thing?

    Hi, @generalbillur!

    That is strange, we are not sure if this is related to the theme. Can we please have a closer look at this?

    Please send us a message through this form (select “I have a pre-sales question” and the form will become visible).

    Make sure to indicate the link to this forum topic in your message. We will provide a solution as soon as possible and share it here.

    Thank you! Have a good day!

    Hi… I have the same question… my theme is “fooding” and I installed the plugin to include the slider… I know it’s at “header.php” but where exactly? I wouldn’t like to see the site is not working due to a problem in the codes

    Hi, @visualnetglobal!

    Please note, that the placement of <?php wd_slider(1); ?> code should be where you wish the slideshow to be.

    For instance, if you need it to appear under the navigation menu, you need to add the code after the code of the website menu.

    Give this a try and let me know in case you have questions.
    Thanks! Have a wonderful day!

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

The topic ‘Where to add php’ is closed to new replies.