• Resolved iRuss

    (@iruss)


    Question 1: Is there a way that I can add an image slider in the “Header Image”?

    Question 2: Is there a way that I can add a video of some sort in the “Header Image”?

    Maybe the use of a header widget of some kind?

    Can this all be done without a child theme? I’m having a hard time wrapping my head around the concept of a child theme!

    I just discovered the Raindrops theme and really like it.

    Thanks,

Viewing 10 replies - 1 through 10 (of 10 total)
  • Theme Author nobita

    (@nobita)

    Hi iRuss

    Question 1: Is there a way that I can add an image slider in the “Header Image”?

    Dashboard / Appearance / install plugins

    Meta Slider set checkbox

    install and activate

    Once click Dashboard

    Once you have activated, please set the slider image at dashboard / Meta Slider

    After slider plug-in configuration is complete, the settings for the display then in the theme customizer

    Dashboard / Appearance / Customize

    Add-ones

    Slider for HomePage set your slide show.

    Saved

    Please make sure that the slide show to display the blog is being displayed

    example

    https://www.tenman.info/wp3/tips/

    Question 2: Is there a way that I can add a video of some sort in the “Header Image”?

    It possible,needs child theme

    child theme example

    https://www.tenman.info/download/child-raindrops.zip

    header.php

    /**
     * Custom Header
     */
    		 $raindrops_title_in_the_header_check = raindrops_warehouse_clone( 'raindrops_place_of_site_title' );
    
    		if ( true == $raindrops_link_unique_text || $raindrops_title_in_the_header_check == 'header_image' ) { ?>
    
    			<?php  echo raindrops_header_image( 'elements' );
    				} else { ?>
    
    			<?php  echo raindrops_header_image( 'home_url');
                    }

    Change from above code to below code

    if ( ( is_home() == true && is_front_page() == true ) || // default
         ( is_home() == false && is_front_page() == true )   // static front page
    ) {
    	?>
    <!--Your Video here-->
    <div class="oembed-container">
    <iframe width="1280" height="720" src="https://example.com/your-video" frameborder="0" allowfullscreen></iframe>
    </div>
    	<?php
    }else{
    /**
     * Custom Header
     */
    		$raindrops_title_in_the_header_check = raindrops_warehouse_clone( 'raindrops_place_of_site_title' );
    
    		if ( true == $raindrops_link_unique_text || $raindrops_title_in_the_header_check == 'header_image' ) { ?>
    
    			<?php  echo raindrops_header_image( 'elements' );
    				} else { ?>
    
    			<?php  echo raindrops_header_image( 'home_url');
                    }
    }

    Save child theme / header.php

    Upload child theme and activate

    Note:
    Maybe Must Needs
    <div class="oembed-container">...</div> for Responsive video
    Do not remove it.

    Thank you

    Thread Starter iRuss

    (@iruss)

    Thanks for your response! I will give this a try and get back to you.

    About uploading the child theme. Where do I upload it to? Do I make a sub folder off the root folder on my server? If so what would I name that sub folder?

    Thanks!

    Theme Author nobita

    (@nobita)

    How to upload child theme

    child theme edit after Change theme in a zip file

    Dashboard / Appearance / Theme

    Add New button click

    Upload Theme button click

    Select child-raindrops.zip and upload

    If this is successful, Child theme appears at the theme list

    Activate.

    Thank you

    Thread Starter iRuss

    (@iruss)

    I’m a little lost. Are you saying to make the edits to the Child theme before I turn it into a zip file and upload it? Or do I do my edits after I upload it?

    Theme Author nobita

    (@nobita)

    child-raindrops.zip

    unzip the file

    edit child theme

    Changes to the zip file

    Upload child theme

    Thread Starter iRuss

    (@iruss)

    Out of the 2 files in that Child themes folder. functions.php, style.css. Which one do I do the edit in? There was no file called, header.php

    Also I was trying to add the slider to the header per you instructions. When I get to Add-ones. There is nothing there to let me set, “Slider for HomePage set your slide show”.

    Theme Author nobita

    (@nobita)

    header.php is copy from raindrops theme

    add header.php in child-raindrops holder

    edit child-raindrops / header.php

    Thread Starter iRuss

    (@iruss)

    Lets forget about adding the child theme for now. I did everything and a code error came up.

    When I go to “Add-ons”, this is what I get:
    https://www.apo442.com/other/add-ons.jpg

    There is no place to add the slider.

    Theme Author nobita

    (@nobita)

    Before you install a theme, if the Meta Slider plug-in has been installed, it does not appear in the add-on.

    The Meta Slider plug-in, once deactivated
    Please be reactivated

    Thread Starter iRuss

    (@iruss)

    Okay now we are cooking with gas! Once I deactivated and reactivated the Meta Slider, the feature showed up in the Add-ons. So now it’s working! Thanks for your help!

    As far as making a video work I’m going to put that off for another day.

    Thanks again ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Image slider or video in the Image Header?’ is closed to new replies.