This topic has 0 replies, 1 voice, and was last updated 10 years by SQadmin.

  • Author
  • #2805
     SQadmin
    Keymaster

    To keep the same structure but replace the home search form with a video you need to edit a file template file.
    First thing you need to install and activate sweetdate-child theme.
    After that, copy wp-content/themes/sweetdate/page-parts/home-search-form.php to sweetdate-child/page-parts/home-search-form.php and edit it.
    This code will add a youtube embed(replace the whole content):

    COPY CODE
    
    
        <div class="twelve columns">
          <div class="row">
    				<div class="five columns">
    					<div class="flex-video">
    						<iframe width="560" height="315" src="//www.youtube.com/embed/WcovKsjvVgM" frameborder="0" allowfullscreen></iframe>
    					</div>
    				</div>
          </div><!--end row-->
        </div><!--end twelve-->
    

    To have the video bigger you need to change “five columns” to “six columns” or “seven columns” and so on

Viewing 1 post (of 1 total)

The topic ‘Homepage – replace search form with video’ is closed to new replies.

Log in with your credentials

Forgot your details?