Forum Replies Created
-
AuthorPosts
-
April 28, 2017 at 10:42 pm in reply to: remove "Cannot modify header information – headers already sent by" #784836
Disable the caching plugin and test again. If all works try different settings. It depends on the plugins you use. It is not an Enfold issue.
Check the wordpress codex for troubleshooting a wod.
April 28, 2017 at 10:25 pm in reply to: Woocommerce Gift card causes issues while checking out #784830Than think about using an other plugin.
@jcameron13 you need to install a childtheme and add the following code to the functions.php of the childtheme:
add_filter('avf_builder_boxes', 'add_builder_to_posttype'); function add_builder_to_posttype($metabox) { $post_types = array('sfwd-courses', 'sfwd-lessons', 'sfwd-quiz', 'sfwd-topic', 'sfwd-certificates' ); foreach($metabox as &$meta) { if($meta['id'] == 'avia_builder' || $meta['id'] == 'layout') { foreach ($post_types as $post_type){ $meta['page'][] = $post_type; } } } return $metabox; }
This will add the Layout Builder and the sitebar metabox. However keep in mind not all elements of the builder can be used in all posttypes of Learndash. This is not bug in Enfold. It is by design in Learndash.
April 28, 2017 at 9:52 pm in reply to: Woocommerce Gift card causes issues while checking out #784821Please contact the developers of the Gift Card plugin as this is not an issue with Enfold
OK so we need one function more. And as we are at it we add the lexicon posttype to the blog grid, portfolio and masonry element
add_theme_support( 'add_avia_builder_post_type_option' ); add_theme_support( 'avia_template_builder_custom_post_type_grid' ); add_filter('avf_builder_boxes', 'add_builder_to_posttype'); function add_builder_to_posttype($metabox) { foreach($metabox as &$meta) { if($meta['id'] == 'avia_builder' || $meta['id'] == 'layout') { $meta['page'][] = 'encyclopedia'; } } return $metabox; } add_filter('avf_custom_sidebar','select_widget_area_for_encyclopedia'); function select_widget_area_for_encyclopedia($sidebar) { global $post; if( $post->post_type == 'encyclopedia' && empty($sidebar) ) { $sidebar = "glossar"; } return $sidebar; } add_filter('avia_layout_filter', 'select_sidebar_for_encyclopedia', 10, 2); function select_sidebar_for_encyclopedia( $layout, $post_id ){ $post_type = get_post_type( $post_id ); $sidebar = get_post_meta( $post_id, 'layout', true ); /* * possible choices for $default: * 'left' for sidebar on the left side * 'right' for sidebar on the right side * anything else or empty for fullwidth layout with no sidebar */ $default = 'right'; if( $post_type == 'encyclopedia' && empty($sidebar) ) { switch ($default) { case 'left': $layout['current']['content'] = 'av-content-small'; $layout['current']['sidebar'] = 'alpha'; $layout['current']['meta'] = 'alpha'; $layout['current']['main'] = 'sidebar_left'; break; case 'right': $layout['current']['content'] = 'av-content-small alpha'; $layout['current']['sidebar'] = 'alpha'; $layout['current']['meta'] = 'alpha'; $layout['current']['main'] = 'sidebar_right'; break; default: $layout['current']['content'] = 'alpha'; $layout['current']['sidebar'] = 'hidden'; $layout['current']['meta'] = ''; $layout['current']['main'] = 'fullsize'; } } return $layout; }
For me this is working out of the box as expected.
I installed Encyclopedia Lite plugin, Enfold and an Enfold Child Theme. I activated the Child Theme. I added a new widget area named ‘glossar’ under appearance -> widgets. I put a text widget in this new sidebar an gave it the title ‘Glossar Test’. I opened my favorite text editor (ultraedit) and put in the following code:
add_filter('avf_builder_boxes', 'add_builder_to_posttype'); function add_builder_to_posttype($metabox) { foreach($metabox as &$meta) { if($meta['id'] == 'avia_builder' || $meta['id'] == 'layout') { $meta['page'][] = 'encyclopedia'; } } return $metabox; } add_filter('avf_custom_sidebar','add_sidebar_to_posttype'); function add_sidebar_to_posttype($sidebar) { global $post; if( $post->post_type == 'encyclopedia' && empty($sidebar) ) { $sidebar = "glossar"; } return $sidebar; }
I went to the lexicon in wp-admin and created a new entry called ‘Test’. In the sidebar metabox i changed nothing. All selectboxes show default.
I called the new entry in a browser and my glossar sidebar with the glossar test widget gets displayed.
In the global enfold sidebar settings the right sidebar is active.
- This reply was modified 7 years, 6 months ago by mensmaximus. Reason: removed debug code :-)
No I say disable them all for testing to find the plugin or theme with the issues.
Every plugin and theme is a potential source of issues. To debug problems you have to disable all plugins except WooCommerce and switch to a standard theme like twenty seventeen. This is essential.
As long as I can’t see the page I can’t tell where to put it.
There can be many reasons for this to happen. Have you performed any updates? Did you disable all plugins except woocommerce for testing? What versions of Enfold and WooCommerce and WordPress are you running at?
What do you mean with import/export screen? You just go to appearance -> themes and activate the child
try
add_filter('avf_custom_sidebar','add_sidebar_to_posttype'); function add_sidebar_to_posttype($sidebar) { global $post; if( $post->post_type == 'encyclopedia' && empty($sidebar) ) { $sidebar = "Glossar"; } return $sidebar; }
Caution! It is untested an just edited in here without syntax check (just from my brain ;-)
@neverlands there is a filter called ‘avf_custom_sidebar’. The filter gets the passed the sidebar ($sidebar). It should (didn’t try it myself) be possible to hook into the filter query the post_type (encyclopedia) and the status of the sidebar (empty($sidebar)) and if both conditions match return the sidebar you desire.
April 28, 2017 at 5:03 pm in reply to: Advanced Layout editor has to be re-enabled on every edit #784709April 28, 2017 at 4:57 pm in reply to: Advanced Layout editor has to be re-enabled on every edit #784702Either your first color section is not closed or the second section is not properly opened.
Given your first link is the ‘template’ that all other pages should follow you should insert two new color section on the top of the page representing the second link. Than move the four 1/4 columns into the first section and the 1/3 and 2/3 columns in the second section. Now delete the two section you have just emptied (formerly section 1 and 2). If that works just add your background to section one and set the height you desire.
Best practice is to copy the code of that pafe from the debug windows into an editor (not word or wordpad – real editor like notebad++) this way you can paste it back if the above procedure wont work.
April 28, 2017 at 4:27 pm in reply to: Advanced Layout editor has to be re-enabled on every edit #784681Open and Save each element in the ALB. This will fix the code.
Short answer: no
Long answer: Technically yes …. but custom development. You might hire a developer.And what is the setting in the global settings of enfold?
April 28, 2017 at 3:27 pm in reply to: Woocommerce featured image shows blurred in product view #784626Please read about the reasons and the solution.
April 28, 2017 at 3:23 pm in reply to: Warning: Cannot modify header information – headers already sent #784622Yes of course the first part is the root cause. But that does not mean it is wrong. ‘I am late because the parking slot was occupied by another one … dude the car parking there is the owner of that parking slot’ ;-) Enfold is starting the output in <html> and that is correct (you can read the w3c definitions of html if you like). Your plugin is simply to late with what ever it tries. That’s why I said it would be interesting to see that code. A developer could easily debug this and tell the trues. Nothing that is possible in a forum.
You would have to give each icon its own custom css class to set the position to absolute with a value for right decreasing by the width of the icons for each. Tbh. this wont work out well in a responsive world. You might consider writing a jquery script do the job.
April 28, 2017 at 3:12 pm in reply to: Pixelization of font on "post slider" – using "use any font" plugin #784611@jiriwasserbauer have you asked the plugin developer as well? What did he say?
@mveneziane disable the cookie-notice plugin and reload the page. Form the errors in the browser console I can see you have conflicting plugin and I guess it is the cookie-notice plugin.
April 28, 2017 at 2:59 pm in reply to: Advanced Layout editor has to be re-enabled on every edit #784597Perhaps the code got mangled. Have you switched on the builder debug mode? If not put the following code in the functions.php of your child theme:
add_action( 'avia_builder_mode', 'builder_set_debug' ); function builder_set_debug() { return "debug"; }
This will display the code created by the advanced layout builder in a field below and can help troubleshooting issues
Short answer: no
Long answer: WooCommerce does not define different sizes (dimensions) for landscape or portrait images. Nor does wordpress. I even have not seen any theme dealing with it. Technically it would be possible to define new image dimensions according to the image orientation. But this would also need some development for the display logic in the theme templates.class is not an element. This rule will never apply.
April 28, 2017 at 2:42 pm in reply to: Advanced Layout editor has to be re-enabled on every edit #784582Have you by chance disabled the visual editor setting in the users profile?
-
AuthorPosts