Tagged: 

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #253366
    Lars
    Participant

    Hi there

    In my frontpage I had the 3 or 4 columms of homepage featured content.

    I now had a page with some text I want to move up before theese 3 columms – I had before mark “X” somewhere in the theme options, so it automatic change the position, but now I can’t fint it in the theme options.

    Could you please help me.

    #253374
    Skandha
    Participant

    @lpries: Hello there,
    Can you please post in your site URL so that I can look into the issue?

    Kind Regards,
    Skandha

    #254762
    Lars
    Participant

    @skandha this is concerning REPLY #253366 and #254638
    I had 2 websites, so you can see the difference – the probelem is with the website https://vestegnenssportsterapeut.dk:

    I’m already using child theme with static frontpage.

    Website: https://larspries.dk where the frontpage order is (the way I would like to show):
    1. Logo area
    2. Featured slider
    3. Homepage headline options
    4. Frontpage text – static
    5. Homepage featured content options
    6. Footer widget area

    But at this website https://vestegnenssportsterapeuat.dk ther order is:
    1. Logo area
    2. Featured slider
    3. Homepage headline options
    4. Homepage featured content options
    5. Frontpage text – static
    6. Footer widget area

    I want to move point 5 above point 4 at this website also, but I can’t find the checkbox to do it. It has been possible to do it before.

    Please advise me what to do?

    #254888
    Skandha
    Participant

    @lpries: Hello there,
    For that you will need to create a child theme like in https://larspries.dk/ and add a function. Let me know if you are familiar with child theme customization so that I can help you out!

    Kind Regards,
    Skandha

    #254894
    Lars
    Participant

    @skandha yes I’m familiar with creating child themes and also some basic HTML5. I already had created a child theme for the website https://vestegnenssportsterapeut.dk

    For some years ago, when I began to use the theme Catch Everest Pro the function already was there as a check/uncheck box somewhere in the theme options, but that function had disappeared over the years development of the theme.

    But anyway I hope you will be able to help me.

    In advance thank you very much

    #254972
    Skandha
    Participant

    @lpries: Hello there,
    Go to => Child Theme Folder => functions.php and add the following Code.

    function catcheverest_homepage_featured_position() {
    	// Getting data from Theme Options
    	global $catcheverest_options_settings;
       	$options = $catcheverest_options_settings;
    	$moveposition = $options['move_posts_home'];
    
    	if ( empty( $moveposition ) ) {
    		add_action( 'catcheverest_after_secondary', 'catcheverest_homepage_featured_display', 10 );
    	} else {
    		add_action( 'catcheverest_after_secondary', 'catcheverest_homepage_featured_display', 10 );
    	}
    
    }

    Let me know if this works out!
    Kind Regards,
    Skandha

    #254984
    Lars
    Participant

    @skandha – I did not worked:

    1. I copied the file functions.php from the main theme
    2. I add the code into the files functions.php
    3. I upload the file functions.php to my child theme

    And got this result:
    Fatal error: Cannot redeclare catcheverest_setup_options() (previously declared in /var/www/vestegnenssportsterapeut.dk/public_html/wp-content/themes/catch-everest-pro_child/functions.php:442) in /var/www/vestegnenssportsterapeut.dk/public_html/wp-content/themes/catch-everest-pro/functions.php on line 442

    #254993
    Skandha
    Participant

    @lpries: Hello there,
    You are not supposed to copy the functions.php file from parent theme to the child theme. The functions.php file should already exist in the child theme. Isn’t that the case?

    Kind Regards,
    Skandha

    #254994
    Lars
    Participant

    @skandha, no I only have the screenshot file and style.css file

    #255090
    Skandha
    Participant

    @lpries: Hello there,
    If you don’t have a functions.php file in your child theme folder you may not created the child theme the right way. Please use our plugin Generate Child Theme to create a child theme. Follow the instructions here on the Instructions tab.

    You will need to backup your customizer settings as well. For that you can use our plugin Catch Import Export Follow the instructions here on the Instructions tab.

    When the child theme is created add the above code I provided you in the functions.php file.

    Let me know if you have any issues.
    Kind Regards,
    Skandha

    #255204
    Lars
    Participant

    @skandha – you are simply the hero of the day.

    It works!

    Thank you so much, you had really helped me out with this problem.

    The child theme generator is so mush easier to use than my manually child theme programming.

    I had learnt the manually way on a course, but only with the files screenshot and style.css. Apparently not a high quality cource.

    So @skandha – thank you so much for your help. I love to work with themes from Catch Themes.

    Have a nice day.

    #255217
    Skandha
    Participant

    @lpries: Hello there, I hope I was able to resolve your issue. If it’s not too much trouble, I have a quick request: could you please leave an honest review?
    https://wordpress.org/support/theme/catch-everest/reviews/#new-post
    Your review will help others know what to expect when they’re looking for the support I offer. Even a sentence or two would be hugely
    appreciated. Thanks, and if there’s anything else at all that I can do to help, don’t hesitate to let me know. Have a good day! 🙂

    Kind Regards,
    Skandha

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘How to move the homepage featured content up and down’ is closed to new replies.