Home Forums Basel support forum Disappears content with WPBakery

Disappears content with WPBakery

Viewing 24 posts - 1 through 24 (of 24 total)
  • Author
    Posts
  • #45751

    miopp_Barcelona
    Participant

    Hello,
    I updated the latest version of Basel 3.9.2
    The WPBakery does not work well and some contents have disappeared.
    They are seen inside the editor but they are not published on the web.

    I bought a few days ago WPBakery but they recommend NOT activating it, better update the theme. It’s what I’ve done but it does not work.

    I need help, urgently
    Thank you

    Attachments:
    You must be logged in to view attached files.
    #45777

    Artem Temos
    Keymaster

    Hello,

    Could you please disable all plugins that are not related to our theme and provide us your admin access so we can check it?

    Thank you in advance

    #45782

    miopp_Barcelona
    Participant

    Hello Artem
    deactivated!

    thanks

    #45783

    miopp_Barcelona
    Participant

    I send you again

    #45812

    miopp_Barcelona
    Participant

    Hello, the page remains the same.Do you have a problem?
    a few hours have passed and I see it the same.
    thanks

    #45838

    Artem Temos
    Keymaster

    Could you please provide us your FTP access as well?

    #45937

    miopp_Barcelona
    Participant

    FTP access ☟

    #45946

    Artem Temos
    Keymaster

    Try to add the following PHP code snippet to the child theme functions.php file to fix this

    function basel_generate_posts_slider($atts, $query = false, $products = false ) {
    	global $woocommerce_loop, $basel_loop;
    	$posts_query = $el_class = $args = $my_query = $speed = '';
    	$slides_per_view = $wrap = $scroll_per_page = $title_out = '';
    	$autoplay = $hide_pagination_control = $hide_prev_next_buttons = $output = '';
    	$posts = array();
    
    	$parsed_atts = shortcode_atts( array_merge( basel_get_owl_atts(), array(
    		'el_class' => '',
    		'posts_query' => '',
            'img_size' => 'large',
    		'title' => '',
    	) ), $atts );
    
    	extract( $parsed_atts );
    
    	$basel_loop['img_size'] = $img_size;
    
    	if( ! $query && ! $products ) {
    		list( $args, $query ) = vc_build_loop_query( $posts_query ); //
    	}
    
    	$carousel_id = 'carousel-' . rand(100,999);
    
    	if( $title != '' ) {
    		$title_out = '<h3 class="title slider-title">' . $title . '</h3>';
    	}
    
    	ob_start();
    
    	if( ( $query && $query->have_posts() ) || $products) {
    		echo $title_out;
    		?>
    			<div id="<?php echo esc_attr( $carousel_id ); ?>" class="vc_carousel_container">
    				<div class="owl-carousel product-items <?php echo esc_attr( $el_class ); ?>">
    
    					<?php
    						if( $products ) {
    							foreach ( $products as $product )  {
    								basel_carousel_query_item(false, $product);
    							}
    						} else {
    							while ( $query->have_posts() ) {
    								basel_carousel_query_item($query);
    							}
    						}
    						unset( $woocommerce_loop['slider'] );
    
    					?>
    
    				</div> <!-- end product-items -->
    			</div> <!-- end #<?php echo esc_html( $carousel_id ); ?> -->
    
    		<?php
    
    			$parsed_atts['carousel_id'] = $carousel_id;
    			basel_owl_carousel_init( $parsed_atts );
    
    	}
    	wp_reset_postdata();
    	unset($basel_loop['img_size']);
    	// woocommerce_reset_loop();
    
    	$output = ob_get_contents();
    	ob_end_clean();
    
    	return $output;
    }
    #45953

    miopp_Barcelona
    Participant

    I don’t see the theme child, I don’t know how to create it.
    thanks

    #46005

    Artem Temos
    Keymaster

    You can download the child theme from ThemeForest with all our theme files. Install it via Appearance -> Themes.

    #46014

    miopp_Barcelona
    Participant

    Well, it’s installed, should I activate it?

    #46021

    miopp_Barcelona
    Participant

    Can you check that the code is correctly set? ☟
    I’ve added it (in Theme Child’s functions.php) after the existing code.

    The next step?

    #46022

    miopp_Barcelona
    Participant

    I send the text file

    #46029

    Artem Temos
    Keymaster

    You need to activate the child theme to apply that changes.

    #46034

    miopp_Barcelona
    Participant

    Can you check that the code is correctly set? ☟
    I’ve added it (in Theme Child’s functions.php) after the existing code.

    The next step?

    Attachments:
    You must be logged in to view attached files.
    #46057

    miopp_Barcelona
    Participant

    Hello, it seems that the WPBakery works well, I have made some changes and they do not disappear.
    What would be the next step?
    Thank you

    #46072

    miopp_Barcelona
    Participant

    Hello, something has happened can not find any product

    not found

    how to continue please.

    Attachments:
    You must be logged in to view attached files.
    #46083

    Artem Temos
    Keymaster

    Strange, could you please check how it works with default WordPress theme to see if it is our theme issue or not? Also, try to to check and save your pemalinks options in Dashboard -> Settings -> Permalinks.

    #46181

    miopp_Barcelona
    Participant

    Good morning

    Well thank you, it has been fixed alone.

    Now I have activated the child theme with your modification in the functions file.
    I have to solve some things:

    – With WP Bakery, I must return to complete contents of missing products.

    – With All in One Seo, go back to completing items.

    – Return to the footer of the web that has disappeared completely with the widgets that were before. Can I get it back?

    Is it correct to continue working with the child theme?

    #46198

    Artem Temos
    Keymaster

    The only one problem may occur when you switch between themes in Appearance -> Themes is that widgets may lose their positions. It is a WordPress behavior and we are not able to fix this in our theme support scope. Now, you need to go to Appearance -> Widgets and move all widgets to appropriate positions.

    #46443

    miopp_Barcelona
    Participant

    I have solved the widgets thanks. In general the page works with WP Bakery.

    My main doubt is that the Child theme is active with your code modification. What will happen when I need to update the Basel version?

    #46466

    Artem Temos
    Keymaster

    You don’t need to update the child theme. Only the parent theme should be updated.

    #46541

    miopp_Barcelona
    Participant

    I have consulted Google Pagespeed and it has changed, now it does not ‘read’ the top of the page.

    ‘The content of the top half of the page could not be displayed’

    Attachments:
    You must be logged in to view attached files.
    #46561

    Artem Temos
    Keymaster

    Strange, but we don’t know what does it mean. As we can see on your screenshot, the website is displayed correctly.

Tagged: 

Viewing 24 posts - 1 through 24 (of 24 total)