OceanWP child theme
If you can't find any good positions with OceanWP settings, then follow this tutorial.
This documentation can help you put a slider under the header of the OceanWP theme.
- 1
-
Go to the FTP of your website and create a child folder
/wp-content/themes/oceanwp-child/
- 2
-
Create a style.css file in this folder
/wp-content/themes/oceanwp-child/style.css
and write this code in it:
/* Theme Name: OceanWP child theme Template: oceanwp */
- 3
-
Create a functions.php file
/wp-content/themes/oceanwp-child/functions.php
Write this code in it, just replace the shortcode with your slider's:
<?php function smart_slider_header(){ echo do_shortcode('[smartslider3 slider=1]'); } add_action('ocean_header', 'smart_slider_header', 11);
This will put the slider under your menu. If you would like to have it under the page title, replace ocean_header with: ocean_page_header
- 4
-
Activate your child theme