Forum Replies Created
-
AuthorPosts
-
Also I wan to echo it like
<p class="ticketgroup">".single_term_title()."</p>
- This reply was modified 5 years, 8 months ago by Jarmo.
Hi,
Now it shows only the main category title.
My products have a main category and a subcategory of that main category.
I want to show the subcategory in it, is that possible too?Hi Nikko,
I know how that function works. Already using it but in that function I want to execute some jQuery when mfp-content is being displayed.
So when the lightbox divs appeared in the code.February 19, 2019 at 4:37 pm in reply to: Product Grid "No products found which match your selection." #1069022Hi,
You can overwrite the following file if you are using a child-theme:
wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/productslider/productslider.phpOn line 432:
echo "<p>".__( 'No products found which match your selection.', 'woocommerce' )."</p>";
Replace it with:
echo "<p>".__( 'YOUR OWN TEXT.', 'woocommerce' )."</p>";
Then place it in your child-theme like:
enfold-child/shortcodes/productslider.phpAfter adding use this function in your functions.php:
add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1); function avia_include_shortcode_template($paths) { $template_url = get_stylesheet_directory(); array_unshift($paths, $template_url.'/shortcodes/'); return $paths; }
- This reply was modified 5 years, 10 months ago by Jarmo.
Ok that’s fine but what do I need to modify?
October 31, 2018 at 10:25 am in reply to: Parent page link works correct but translation doesn't #1028405Alright thanks! I will take a look at the logs when the next patch is available!
October 30, 2018 at 11:46 am in reply to: Parent page link works correct but translation doesn't #1027957I found this thread as solution myself:
https://wpml.org/forums/topic/enfold-theme-cant-copy-breadcrumb-hierarchy/#post-893784I need to make a change in the following file: wp-content/themes/enfold/framework/php/class-breadcrumb.php
I want to make this change into my child theme but then it won’t work.
My child theme folders are like this: wp-content/themes/enfold-child/framework/php/class-breadcrumb.phpI made the change in class-breadcrumb.php but this doesn’t have any effect.
How can I make the right change through my child theme?October 30, 2018 at 10:31 am in reply to: Parent page link works correct but translation doesn't #1027933No it doesn’t work.
Is there an option to set the breadcrumb parent for a portfolio-item in the main language and it automatically understands it for the other languages?Like in main language english:
Portfolio-item = Coffee
Breadcrumb-parent = SpeciesAfter setting the breadcrumb parent Species for Coffee the system needs to understand to do this for the other languages too.
Like when set in English as above it automatically understands the translations like:
Dutch:
Portfolio-item translation = Koffie (translation of Coffee)
Breadcrumb-parent translation = Soorten (translation of page Species)If there is a solution for this I only have to set the breadcrumb parent once for each portfolio-item
- This reply was modified 6 years, 1 month ago by Jarmo.
October 29, 2018 at 8:46 pm in reply to: Parent page link works correct but translation doesn't #1027736So if i’m understanding your comment I need to set the breadcrumbs again but with this as new function?
function avia_add_all_breadcrumb_parent() { $args = array('posts_per_page' => -1, 'post_status' => 'any', 'post_type' => array('portfolio'), 'tax_query' => array( array( 'taxonomy' => 'portfolio_entries', 'field' => 'term_taxonomy_id', 'terms' => array(26, 25, 24) ) )); $articles = new WP_Query( $args ); $translated_id = icl_object_id($article->ID, 'portfolio', false,ICL_LANGUAGE_CODE); if( $translated_id ) { update_post_meta($translated_id, 'breadcrumb_parent', 1980); } wp_reset_postdata(); } add_action('wp_head','avia_add_all_breadcrumb_parent');
October 10, 2018 at 2:00 pm in reply to: When choosing link manually don't link to somewhere #1019946I already found the solution:
Added this code to my document ready function:
jQuery(".meer_info_portfolio a").click(function(event){ event.preventDefault(); });
October 10, 2018 at 1:54 pm in reply to: When choosing link manually don't link to somewhere #1019944It is a normal button from the avia builder with class ‘.meer_info_portfolio’
This is the code in my functions:function script_meerinfo(){ ?> <script> jQuery(document).ready(function(){ jQuery( ".meer_info_portfolio .avia-button" ).click(function() { jQuery( ".infoblokportfolio" ).toggleClass( "tonen" ); }); }); </script> <?php } add_action('wp_footer', 'script_meerinfo');
October 9, 2018 at 9:43 pm in reply to: When choosing link manually don't link to somewhere #1019674The only no link I can add to it the button is a #.
See this topic: https://kriesi.at/support/topic/button-element-with-no-link-not-possible/But if I add # as link it jumps to the top of the page when I click the button but I don’t want to.
When I set the link to manually it refreshes the page but I dont’ want to.
See the button ‘Meer info +’ on page in private content.This solved my problem! Thanks!
function avia_add_all_breadcrumb_parent() { $args = array('posts_per_page' => -1, 'post_status' => 'any', 'post_type' => array('portfolio')); $articles= get_posts( $args ); foreach($articles as $article) { update_post_meta($article->ID, 'breadcrumb_parent', 1980); } } add_action('init','avia_add_all_breadcrumb_parent');
Can I use this code for a specific category ID? That would solve my problem
Ok I am gonna try this ;)
One extra question: How did you turn on the custom fields? In other sites I have I don’t see this checkbox in screen settings.When I assign a ID to breadcrumb_parent, it creates a second breadcrumb_parent.
Is there an option to first remove all the breadcrumb_parent fields and adding them by assigning ID’s to items?Did you watch the video?
I did what you said, see this video: https://vimeo.com/291974932
The password is in the private content. What am I doing wrong???- This reply was modified 6 years, 2 months ago by Jarmo.
Did you assigned the parent page through the plugin ‘Custom field bulk editor’?
In the theme settings I turned on show breadcrumbs now and removed the shortcode but the shortcode isn’t necessary now.
But if I assign the parent page through the plugin it still doesn’t work. That is my problem, not how to show breadcrumbs.I know how to assign a breadcrumb parent on the portfolio page individually but it needs to be done in bulk.
- This reply was modified 6 years, 2 months ago by Jarmo.
Hi
I made an admin account for you.
For example you can test to set the portfolio item ‘Mag het een pontje meer zijn’ to breadcrumb_parent ‘Bewegwijzering’.
For me it didn’t work out.That would be the most simple solution but I want it to open in the same tab
Maybe I found another solution.
In pages you can select a range of pages and select Bulk actions > edit.
You can select the parent page for all those pages then.
In the portfolio items list I don’t get that option when I bulk edit. Is there a function to add this option to portfolio items as well?I did exactly what you said but it didn’t work out.
Hi,
I want the user to navigate to this page: https://www.audion.com/product/speedpack-option-foot-pedal/ if he or she clicks on foot pedal in the iframe
Because on that page there also is a bigger picture of it and a gravity form.
Isn’t there any option to set breadcrumb parent page in bulk?
It is working okay if I select a parent page in this area : https://imgur.com/u0c3nzn
But if I enable breadcrumbs in the theme settings it doesn’t work right and I have to modify every portfolio-item individually (selecting the parent page by hand). This will cost a lot of time. Is there an other way to make it work out.Thanks mate! This works perfect!
This doesn’t work for me. The post navigation now disappeared
August 9, 2018 at 11:40 am in reply to: Add the "category slug" as a CSS class to the article content element #995393I have this now because I want to add a category for different pages:
add_filter( 'body_class', 'add_category_class' ); function add_category_class( $classes ) { if( is_single() && has_category('gasvrij-academy') ) { $classes[] = 'gasvrij-academy-cat'; } elseif( is_single() && has_category('informatief') ) { $classes[] = 'informatief-cat'; } elseif( is_single() && has_category('advies') ) { $classes[] = 'advies-cat'; } elseif( is_single() && has_category('offerte') ) { $classes[] = 'offerte-cat'; } elseif( is_single() && has_category('afspraak') ) { $classes[] = 'afspraak'; } return $classes; }
But with this code the categories are not added to the pages, is there something wrong in this code?
July 26, 2018 at 9:41 am in reply to: Add the "category slug" as a CSS class to the article content element #990126Hi Victoria,
Thanks, kind of stupid I didn’t see this semicolumn by myself haha.
Next time I need to take a better look! -
AuthorPosts