ColorMag child theme
This documentation can help you put a slider under the top menu of the ColorMag theme.
- 1
-
Go to the FTP of your website and create a child folder
/wp-content/themes/colormag-child/
- 2
-
Create a style.css file in this folder
/wp-content/themes/colormag-child/style.css
and write this code in it:
/* Theme Name: ColorMag Child Template: colormag */ @import url('../colormag/style.css');
- 3
-
Create a functions.php file
/wp-content/themes/colormag-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=123]'); } add_action('colormag_after_header', 'smart_slider_header');
- 4
-
Activate your child theme