Hi @kaffendw,
That is certainly possible, but is going to require a small amount of customization on your end. I’d be happy to provide you with some code to get you headed in the right direction.
Before the code, you’ll first need to setup an mu-plugin on your site. This will be the location where you’re going to add the following code to and is going to prevent the code from being removed on each theme update.
We’ve setup a quick tutorial on setting up an MU plugin within WordPress on our documentation page, found here: https://godaddy.github.io/wp-primer-theme/tutorials-and-examples/tutorials/mu-plugin.html
Once you’ve setup an MU plugin, you can add the following code to it (following the format of the code in the example in our tutorial):
/**
* Replace the default Primer header content with Slider Revolution.
*
* @author GoDaddy
* @return mixed Markup for Slider Revolution.
*/
function replace_primer_hero_content() {
if ( ! is_front_page() ) {
return;
}
echo do_shortcode( '[slider-revolution]' ); // slider revolution shortcode here
}
add_action( 'primer_hero', 'replace_primer_hero_content' );
remove_action( 'primer_hero', 'primer_add_hero_content' );
You will want to swap out the appropriate shortcode for the slider shortcode you are using. Once you’ve done that, you can save the MU Plugin and reload your site to check if things look somewhat correct.
I’m assuming you’ll need to tweak the CSS a bit to get things looking just right within the theme, but the above tutorial and code sample should get you headed in the correct direction.
Evan
-
This reply was modified 7 years, 8 months ago by
Evan Herman.
-
This reply was modified 7 years, 8 months ago by
Evan Herman. Reason: update code formatting
-
This reply was modified 7 years, 8 months ago by
Evan Herman.