Tagged: code, custom code, featured content, featured slider
- This topic has 1 reply, 2 voices, and was last updated 6 years, 6 months ago by Skandha.
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
June 16, 2018 at 1:02 pm #147825bigbearFAParticipant
I want to re-arrange the homepage a bit by making the tournaments right below the “featured slider” There is a forum post on Catch Themes that says how to do this, but I need a bit of custom code from the developer. Can you make a post there and ask him for that code?
I want to move the “Featured Content” right below the “Featured Slider”June 17, 2018 at 1:48 pm #147861SkandhaParticipant@bigbearfa: For this you will need to create a child theme. If you do not know how to create a child theme then you can use Generate Child Theme plugin. Then Go to => Child Theme Folder => functions.php and add the following code.
if ( ! function_exists( 'parallax_frame_featured_content_display_position' ) ) : /** * Homepage Featured Content Position * * @action parallax_frame_content, parallax_frame_after_secondary * * @since Parallax Frame 1.0 */ function parallax_frame_featured_content_display_position() { // Getting data from Theme Options $options = parallax_frame_get_theme_options(); if ( $options['featured_content_position'] ) { add_action( 'parallax_frame_after_content', 'parallax_frame_featured_content_display', 15 ); } else { add_action( 'parallax_frame_before_content', 'parallax_frame_featured_content_display', 15 ); } } endif; // parallax_frame_featured_content_display_position add_action( 'parallax_frame_before', 'parallax_frame_featured_content_display_position' );
Let me know if this works out.
Kind Regards,
Skandha -
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
- The topic ‘I need Custom Code!’ is closed to new replies.