Tagged: x
-
AuthorPosts
-
May 29, 2016 at 4:01 pm #1015513
Hi there,
http://www.slimliving.nl is made before there was Cornerstone. I use Visual Composer.
When i update X, the site breaks every time, so for now i would like to leave it.
I would like to update WordPress to the latets version. I made a staging Copy to test updates. http://www.staging12.slimliving.nl/
On the bottem of the homepage, you see the Styled Post isnt working anymore. Check the original at http://www.slimliving.nl It is the section called Dish of the day.
Can we make this work again?
May 29, 2016 at 6:21 pm #1015595Hi there,
Thanks for writing in.
This only means that the shortcode is not active on your staging site. Eg. add_shortcode(‘styled_posts’)
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / password
– FTP credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks!
May 30, 2016 at 2:15 am #1016096This reply has been marked as private.May 30, 2016 at 2:30 am #1016106Hello There,
Thanks for the very detailed information. I can see that you did not update to the latest version yet. Please know that the older version of VC is no longer compatible with the latest version of WordPress. You have to update it.
Our latest versions are:
X Theme: 4.4.2
Cornerstone: 1.2.4
Visual Composer: 4.11.2Please deactivate and delete X Shortcodes 3.0.5 plugin. Please take note that X shortcodes 3.0.5 and its functionality has been consolidated into Cornerstone which you can install by going to X Addons > Extensions. To run the latest X smoothly, you need to install Cornerstone plugin. All the shortcodes and its functionalities has been integrated in this plugin. You can get this plugin by going to X Addons > Extensions. To know more about Cornerstone, please check it out here: http://theme.co/blog/x-version-4-introducing-cornerstone/
You can find the latest version numbers here: (http://theme.co/changelog/) Then you can compare them to what’s installed on your site. If you find anything to be out of date, you can review our update guide.
May 30, 2016 at 3:30 am #1016159Ok, so now i am completely updated.
I still need to copy the old style.css and functions.php to get the custom work in there again. But that will break the site. But let’s start with 1 thing at a time.
The shortcode still doesnt work?
May 30, 2016 at 3:36 am #1016174Hello There,
The shortcode code will not work out because the code that process your shortcode is in your child theme. You have to activate child theme because all your customizations is in the child theme.
Hope this explains it.
May 30, 2016 at 4:59 am #1016249This reply has been marked as private.May 30, 2016 at 5:30 am #1016285Hi There,
Please check this part of your child theme functions.php file:
// Enqueue Parent Stylesheet // ============================================================================= add_filter( 'x_enqueue_parent_stylesheet', '__return_true' ); // Additional Functions // ============================================================================= add_filter( 'x_enqueue_parent_stylesheet', '__return_true' );
You have enqueue the parent stylesheet twice. Please one of this line:
add_filter( 'x_enqueue_parent_stylesheet', '__return_true' );
Can you clarify why you have the following code:
function my_child_theme_setup() { load_child_theme_textdomain( '__x__', get_stylesheet_directory() . '/framework/lang' ); } add_action( 'after_setup_theme', 'my_child_theme_setup' ); function x_enqueue_site_styles() { // // Stack data. // $stack = x_get_stack(); $design = x_get_option( 'x_integrity_design', 'light' ); if ( $stack == 'integrity' && $design == 'light' ) { $ext = '-light'; } elseif ( $stack == 'integrity' && $design == 'dark' ) { $ext = '-dark'; } else { $ext = ''; } // // Register styles. // wp_register_style( 'x-stack', X_TEMPLATE_URL . '/framework/css/site/stacks/' . $stack . $ext . '.css', NULL, X_VERSION, 'all' ); // // Enqueue styles. // if ( is_child_theme() ) { $dep = ( apply_filters( 'x_enqueue_parent_stylesheet', false ) ) ? array( 'x-stack' ) : NULL; //wp_enqueue_style( 'x-child', get_stylesheet_directory_uri() . '/style.css', $dep, X_VERSION, 'all' ); wp_enqueue_style( 'x-child', get_stylesheet_directory_uri() . '/style.css?rel='.time()); } else { wp_enqueue_style( 'x-stack' ); } if ( is_rtl() ) { wp_enqueue_style( 'x-rtl', X_TEMPLATE_URL . '/framework/css/site/rtl/' . $stack . '.css', NULL, X_VERSION, 'all' ); } if ( X_BBPRESS_IS_ACTIVE ) { if ( x_is_bbpress() ) { wp_deregister_style( 'buttons' ); } wp_deregister_style( 'bbp-default' ); wp_enqueue_style( 'x-bbpress', X_TEMPLATE_URL . '/framework/css/site/bbpress/' . $stack . $ext . '.css', NULL, X_VERSION, 'all' ); } if ( X_BUDDYPRESS_IS_ACTIVE ) { wp_deregister_style( 'bp-legacy-css' ); wp_deregister_style( 'bp-admin-bar' ); wp_enqueue_style( 'x-buddypress', X_TEMPLATE_URL . '/framework/css/site/buddypress/' . $stack . $ext . '.css', NULL, X_VERSION, 'all' ); } if ( X_WOOCOMMERCE_IS_ACTIVE ) { wp_deregister_style( 'woocommerce-layout' ); wp_deregister_style( 'woocommerce-general' ); wp_deregister_style( 'woocommerce-smallscreen' ); wp_enqueue_style( 'x-woocommerce', X_TEMPLATE_URL . '/framework/css/site/woocommerce/' . $stack . $ext . '.css', NULL, X_VERSION, 'all' ); } if ( X_GRAVITY_FORMS_IS_ACTIVE ) { wp_enqueue_style( 'x-gravity-forms', X_TEMPLATE_URL . '/framework/css/site/gravity_forms/' . $stack . $ext . '.css', NULL, X_VERSION, 'all' ); } if ( X_CONTACT_FORM_7_IS_ACTIVE ) { wp_deregister_style( 'contact-form-7' ); } if ( x_get_option( 'x_custom_fonts', '' ) == '1' ) { wp_enqueue_style( 'x-font-custom', $get_custom_font_family, NULL, X_VERSION, 'all' ); } else { wp_enqueue_style( 'x-font-standard', $get_standard_font_family, NULL, X_VERSION, 'all' ); } }
That is not needed. Child theme will inherit all main x theme functionalities and style. In case you want to add some custom CSS we can add it on Appearance > Customize > Custom > Edit Global CSS or on your child theme style.css file. Please clarify so we can help you better.
May 30, 2016 at 5:48 am #10163101: You have enqueue the parent stylesheet twice. Please one of this line:
add_filter( ‘x_enqueue_parent_stylesheet’, ‘__return_true’ );I deleted 1 of them. Is this ok now?
2: or my old programmer did it, or it was in the old version of the Child theme??
Anyway i deleted all that code, so now it is indeed better 🙂In my previous post i said i also deleted a section with the Font data. Is that also correct??
So few issues left:
1: If you check the original @ http://www.slimliving.nl you can see the menubar and sitetitle are not correctly displayed!!
Also the headings and the ligns next to the headings are not displayed correct.2: The styled post (DISH OF THE DAY) isn’t working. All the custom work is now in style.css and functions.php
3: the custom work we did on the sidebar of the blog is gone. Please checl original @ http://www.slimliving.nl/blog/
May 30, 2016 at 6:01 am #1016321Hi,
Yes that’s correct.
For #1
It looks fine on my end – http://screencast.com/t/v6m59Nad
For #2
I am not sure how it should work but this is how it looks on my end.
http://screencast.com/t/Hfd0rqPd2RW
Please clear your browser cache and try again.
Thanks
May 30, 2016 at 6:43 am #1016347I think you checked http://www.slimliving.nl
But the site we are updating is @ http://www.staging12.slimliving.nl/ and there it doesn’t work
May 30, 2016 at 7:35 am #1016389Hi,
I was able to fix it by adjusting the alignment under Appearance > Customize > Header > LINKS – ALIGNMENT
http://screencast.com/t/L0oofKe3
I also fix headline and recent post issue.
Kindly check on your end.
Thanks
May 30, 2016 at 8:44 am #1016480This reply has been marked as private.May 30, 2016 at 9:07 am #1016523Hi there,
#1 Please change font family under Customize -> Header -> Logo-Text.
#2 You can download customized file from original site’s child theme and upload it to staging site’s child theme folder.
#3 I see following error in your console :
http://www.staging12.slimliving.nl/wp-content/themes/x-child-icon/ajax/login.php 404 (Not Found)
Please check your child theme and make sure that you put the file in correct path.
Hope it helps.
May 30, 2016 at 9:41 am #1016569#1 check. Done. thanks!!
# 2. I think i copied all the Customized files to the staging site already!! Could it be that there is a small change ?
#3 Ok so i have to change the URL!! Could you please let me know where that is located. can’t seem to find it !
-
AuthorPosts