Forum Replies Created
-
AuthorPosts
-
Some help?
Yes. It works perfectly. Thanks a lot, specially to @guenni007
Thanks a lot for your respond, it works flawless! Thanks a lot again
Thanks a lot for all your responds.
This is the link to the website: dev.avmedios.es
March 28, 2018 at 12:35 pm in reply to: Change the default value for portfolio additional settings #934219I found the solution. I removed the foreach function. This will be the code:
add_action( 'after_setup_theme', 'ava_enfold_builder_layout_mod' ); function ava_enfold_builder_layout_mod(){ add_filter('avf_builder_elements', 'avf_enfold_builder_layout_settings_mod'); } function avf_enfold_builder_layout_settings_mod($elements) { $counter = 0; foreach($elements as $element) { // Ajax Portfolio Preview Settings > Display Preview Images if($element['id'] == '_preview_display') { /** * * Available Options * Gallery = gallery * Slideshow = slideshow * Image List = list * Don't show the images at all and display the preview text only = no * MOD: Set the selector > Display Preview Images "Don't show the images" * **/ $elements[$counter]['std'] = 'no'; } $counter++; } return $elements; }
add_action( 'after_setup_theme','remove_portfolio', 100 ); function remove_portfolio() { remove_action( 'init', 'portfolio_register'); }
Try this
Hi Arvish, I’ve already read that article and submit the ticket, and they didn’t answer, I will keep waiting.
Anyways, there is no way to find another solution to get updates, without envato?
Thank you I hope that somebody from head of support can solved it. Thank you.
Please, I need some help with this issue.
Did you check the website? Thank you.
This reply has been marked as private.Thank you so much!! :D
@12Stone which element are you trying to use? Do you use a child theme?
I don’t know what happened but I reimported all the posts again after a backup and everything works smoothly :)
@12Stone, which element are you trying to use?This reply has been marked as private.Thank you. Now works :)
Hi, If you are using a child theme this code might be useful for you. It add the visual editor to any CPT, and you don’t have to worry about the updates anymore ;)
add_filter('avf_builder_boxes','custom_post_types_options'); function custom_post_types_options($boxes) { $boxes[] = array( 'title' =>__('Avia Layout Builder','avia_framework' ), 'id'=>'avia_builder', 'page'=>array('custom_post_type1','custom_post_type2','custom_post_type3'), 'context'=>'normal', 'expandable'=>true ); $boxes[] = array( 'title' =>__('Layout','avia_framework' ), 'id'=>'layout', 'page'=>array('custom_post_type1','custom_post_type2','custom_post_type3'), 'context'=>'side', 'priority'=>'low'); $boxes[] = array( 'title' =>__('Additional Portfolio Settings','avia_framework' ), 'id'=>'preview', 'page'=>array('custom_post_type1','custom_post_type2','custom_post_type3'), 'context'=>'normal', 'priority'=>'high' ); return $boxes; }
That options didn’t worked. Anyways, I found the way how to do it. I post it if somebody need it also:
add_filter('avf_builder_boxes','custom_post_types_options'); function custom_post_types_options($boxes) { $boxes[] = array( 'title' =>__('Avia Layout Builder','avia_framework' ), 'id'=>'avia_builder', 'page'=>array('custom_post_type1','custom_post_type2','custom_post_type3'), 'context'=>'normal', 'expandable'=>true ); $boxes[] = array( 'title' =>__('Layout','avia_framework' ), 'id'=>'layout', 'page'=>array('custom_post_type1','custom_post_type2','custom_post_type3'), 'context'=>'side', 'priority'=>'low'); $boxes[] = array( 'title' =>__('Additional Portfolio Settings','avia_framework' ), 'id'=>'preview', 'page'=>array('custom_post_type1','custom_post_type2','custom_post_type3'), 'context'=>'normal', 'priority'=>'high' ); return $boxes; }
Replace ‘custom_post_type1′,’custom_post_type2′,’custom_post_type3’ with the name of your own custom post types ;)
Any solution to this problem? Thanks.
Thanks for your help Dude ;)
Thanks for the explanation ;)
This reply has been marked as private.Thanks a lot. It works perfectly.
I have another question, it is also possible to hook some more options into the admin panel of the theme from a child theme? I mean, edit something from the register-admin-options.php file.
Thanks
That code removes also the white clear over the image… I figured out how to…
.image-overlay .image-overlay-inside:before{content: none !important;} .image-overlay.overlay-type-extern .image-overlay-inside:before{content: none !important;} .image-overlay.overlay-type-video .image-overlay-inside:before{content: none !important;}
Thank you anyways :)
I did, and it work, but there is no other solution? Because I have to much modifications (around 100 lines), and I would like to not use !important value always, because I can mess up something else ;)
Now! Why could be the reason that before didn’t work?
Thank you anyways :)
This reply has been marked as private.Thanks Kriesi, but is not working in my case. I have the keyword “forums”, I change it, and is not changing at all.
This is the code that I type:
add_action('avf_frontend_search_form_param', 'kriesi_forum_search',9); function kriesi_forum_search($params) { if( strpos($params['form_action'], 'forums') !== false ) { $params['ajax_disable'] = true; $params['search_id'] = "bbp_search"; $params['placeholder'] = "Search Forums"; } return $params; }
The option to add a lateral border to the different layouts when you choose them (the same style when you choose sidebars)
Ups, that’s true. I didn’t check the files that are overwrite by child theme. I will check it, and I will post what’s happens.
Thanks Kriesi
-
AuthorPosts