Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #1365605

    Hi,

    I updated Enfold version 4.7 to5. I added the child theme and imported all the previous theme options. But the website looks way different than the original site.

    #1365630

    Hey AHolm1957,

    I’m only seeing a 404 error on the new site, do we need to login to see it maybe? If so, then please post admin WordPress login details in private.

    Best regards,
    Rikard

    #1365638
    This reply has been marked as private.
    #1365641

    Hi AHolm1957,

    Thanks for giving us admin access.
    I have switched staging21 to Enfold version 5 and it seems to work as it should, please check.

    Best regards,
    Nikko

    #1365645
    This reply has been marked as private.
    #1365662

    Hi AHolm1957,

    I see, most of the stuff is fixed in staging21 however I could not find any reference for the header.
    Can you create another staging site based on the original? so I could try to use it as a reference and fix the header.

    Best regards,
    Nikko

    #1365896
    This reply has been marked as private.
    #1365990
    This reply has been marked as private.
    #1366284

    Hi,
    Thanks for the link to your site, I see that the “second logo” and “Owner info” is added by a custom function in your child theme functions.php:

    // Add options to the customize menu
    function register_theme_customizer( $wp_customize ) {
    	
    	
    	
    	$wp_customize->add_section('secondry_logo_section', array(
            'title'    => __('Secondry Logo', 'enfold'),
            'description' => '',
            'priority' => 30,
        ));
    	
    	$wp_customize->add_setting('secondry_logo', array(
            'default'        => '',
            'capability'     => 'edit_theme_options',
            'type'           => 'option',
     
        ));
     
        $wp_customize->add_control(new WP_Customize_Image_Control( $wp_customize, 'secondry_logo', array(
            'label'      => __('Secondry Logo', 'enfold'),
            'section'    => 'secondry_logo_section',
            'settings'   => 'secondry_logo',
        )));
    	
    	$wp_customize->add_section('header_client_info', array(
            'title'    => __('Owner Info', 'enfold'),
            'description' => '',
            'priority' => 60,
        ));
    	
    	$wp_customize->add_setting('owner_info', array(
            'default'        => '',
            'capability'     => 'edit_theme_options',
            'type'           => 'option',
     
        ));
     
        $wp_customize->add_control('owner_info', array(
            'label'      => __('Owner Name', 'enfold'),
            'section'    => 'header_client_info',
            'settings'   => 'owner_info',
        ));
    	
    	$wp_customize->add_setting('owner_contact', array(
            'default'        => '',
            'capability'     => 'edit_theme_options',
            'type'           => 'option',
     
        ));
     
        $wp_customize->add_control('owner_contact', array(
            'label'      => __('Owner Contact Number', 'enfold'),
            'section'    => 'header_client_info',
            'settings'   => 'owner_contact',
        ));
    	
    	$wp_customize->add_section('banner_section', array(
            'title'    => __('Banner Section', 'enfold'),
            'description' => '',
            'priority' => 40,
        ));
    	
    	$wp_customize->add_setting('home_banner_image', array(
            'default'        => '',
            'capability'     => 'edit_theme_options',
            'type'           => 'option',
     
        ));
    
    	$wp_customize->add_control(new WP_Customize_Image_Control( $wp_customize, 'home_banner_image', array(
            'label'      => __('Banner Image', 'enfold'),
            'section'    => 'banner_section',
            'settings'   => 'home_banner_image',
        )));
    	
    	$wp_customize->add_setting('banenr_text', array(
            'default'        => '',
            'capability'     => 'edit_theme_options',
            'type'           => 'option',
     
        ));
     
        $wp_customize->add_control('banenr_text', array(
            'label'      => __('Banner Text', 'enfold'),
            'section'    => 'banner_section',
            'settings'   => 'banenr_text',
        ));
     
    }
    add_action( 'customize_register', 'register_theme_customizer' );

    that addS to the WordPress customizer:
    2022-09-25_004.jpg
    Your second logo image is there, but the html div is not added to the page source code.
    Unfortunately I don’t have any experience with this kind of customization, I assume that it would need to hook into the Enfold header.php but I don’t know how.
    I recommend asking the person that set this up for you to help you.

    Best regards,
    Mike

    #1366543
    This reply has been marked as private.
    #1366621

    Hi,
    Correct, this is not an Enfold function, this was added by the code above, I tested it on my demo site and it adds the extra elements to the customizer, but there is some missing code to make it work, I assume in the header.php but I don’t know, perhaps it was added to a different file. If you find out what the missing code is please share as it would be interesting to see.

    Best regards,
    Mike

    #1366663
    This reply has been marked as private.
    #1366720

    Hi,
    I didn’t make any changes, I only investigated these two fields. From above I don’t see that Nikko made any changes, he wrote:
    I have switched staging21 to Enfold version 5 and it seems to work as it should
    perhaps the other things were cache related.
    Perhaps our documentation for Adding a header widget area will help you recreate this area.

    Best regards,
    Mike

    #1366735
    This reply has been marked as private.
    #1366753

    Hi,
    Sorry, we were not able to help more with this issue, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘Enfold 5 update broke the theme’ is closed to new replies.