Forum Replies Created
-
AuthorPosts
-
Hi Rikard,
See the link in private content.
Worked for me. Thanks!
Hi Nikko,
See the private section
Hi Nikko,
I did this but it doesn’t work.
Ok, thanks. figured it out. It was in the postslider.php by the way.
Last question. How can I echo the category before the date?This is the part of the date now:
if( ( $show_meta && ! empty( $excerpt ) ) || in_array( $show_meta_data, array( 'always', 'on_empty_content' ) ) ) { $meta = "<div class='slide-meta'>"; if ( $commentCount != "0" || comments_open($the_id) && $entry->post_type != 'portfolio') { $link_add = $commentCount === "0" ? "#respond" : "#comments"; $text_add = $commentCount === "1" ? __('Comment', 'avia_framework' ) : __('Comments', 'avia_framework' ); $meta .= "<div class='slide-meta-comments'><a href='{$link}{$link_add}'>{$commentCount} {$text_add}</a></div><div class='slide-meta-del'>/</div>"; } $markup = avia_markup_helper(array('context' => 'entry_time','echo'=>false, 'id'=>$the_id, 'custom_markup'=>$custom_markup)); $meta .= "<time class='slide-meta-time updated' $markup>" .get_the_time(get_option('date_format'), $the_id)."</time>"; $meta .= "</div>"; if( strpos($blogstyle, 'elegant-blog') === false ) { $output .= $meta; $meta = ""; } }
What do I need to add to it to get the output like this:
Category | DateI only want to show the category without the parent category
- This reply was modified 4 years, 9 months ago by Jarmo.
See private content.
Also I want the whole <article> to be the link to the post instead of only the picture and the titleHi,
This is how it looks now:
https://ibb.co/kS2VyTfI want it to look like this:
https://ibb.co/SyzSNbV‘diensten’ = post category
So I am looking for any hook to make it like the last link.
January 7, 2020 at 11:01 am in reply to: Add ACF fields in portfolio grid/masonry without using the shortcode map. #1170991Hi,
I am a colleague of Janine.
Right now we are using the following function:add_filter('avf_masonry_loop_prepare','avia_change_default_link', 10, 2); function avia_change_default_link($loop, $entries) { foreach($entries->posts as $key => $entry) { if($entry->post_type == "portfolio") { $opties = get_field('opties', $loop['ID']); foreach( $opties as $optie ) { $waarde .= "<li>".$optie."</li>"; } $more = "<div class='beschrijf' itemprop='text'><ul>".$waarde."</ul></div><div class='masonry-more-link-arrow vdwerfknopgrid'><span>ONTDEK</span></div>"; $loop['content'] = avia_backend_truncate($entry->post_content, apply_filters( 'avf_masonry_excerpt_length' , 60) , apply_filters( 'avf_masonry_excerpt_delimiter' , " "), "…", true, '') . $more; } } return $loop; }
It shows the selected checkboxes from the ACF fields correct but it keeps looping.
See the page in the private content (last machine).
It shows Tracks, Vario, Laag verbruik.
After this 3 it needs to stop but it is repeating the selected checkboxes.Settings were correct. Tried to re-upload the video so I would get a new link. Changing the link in the site fixed the issue. Pretty weird but it is fixed.
Hi,
Yes it was already set to Always Load Videos.
Hi,
I have things like lazy load on the site but turned it all off to check it but doesn’t have any effect.
November 12, 2019 at 7:08 pm in reply to: child CSS doesn't show up on front-end correct with performance theme setting #1156092Hi,
Yeah that is a solution but not the correct solution.
If I update my theme it will erase all the CSS. There has to be a solution for my child css.Hi, on a other page there are a lot of videos without any problem (see private content).
So could it be something else?November 11, 2019 at 2:19 pm in reply to: child CSS doesn't show up on front-end correct with performance theme setting #1155616Hi,
Yeah it is another website but the same problem.
I have now inserted my css into the quick css to make it workNovember 11, 2019 at 11:01 am in reply to: child CSS doesn't show up on front-end correct with performance theme setting #1155530Gave you a login in the private content. The performance setting is turned off but my CSS isn’t load on the front-end so hope you can fix this.
Hi Nikko,
In the private content I pasted the credentials.
October 4, 2019 at 9:57 am in reply to: child CSS doesn't show up on front-end correct with performance theme setting #1144923Hi,
I get what you say but if I set the performance settings on disable and save and refresh without caching it doesn’t have any effect.
That is just the whole problem.Hi,
I updated the other site to 4.6.1 and there it is still working.
Maybe something else?September 27, 2019 at 1:10 pm in reply to: child CSS doesn't show up on front-end correct with performance theme setting #1142744(1) https://ibb.co/Y8b2FHL -> This are my settings normally when developing, always works
(2) https://ibb.co/XtS38js -> This is how my site looks then (no style.css from child theme loaded)(3) https://ibb.co/nmCyB2v -> If I do my settings like this the style.css of my child theme is loaded
(4) https://ibb.co/KN8ShLB -> Front-end loaded with style.cssBut when merging is enabled (3) and I change something in style.css I need to disable the merging (1) and save.
Then refresh the front-end looks like (2). Then need to enable merging again (3) and refresh the front-end to get it right on the front-end (4).Pretty strange bug.
September 16, 2019 at 9:31 am in reply to: Configure Tag Manager in Cookie settings after update to 4.6.1 #1138714Hi,
I know how to implement the code in the head but how do I turn it on or off with the cookie modal popup because visitors need to be able to disable the facebook pixel tracking.
Regards,
JarmoSeptember 12, 2019 at 9:34 am in reply to: Configure Tag Manager in Cookie settings after update to 4.6.1 #1137435Yes I have installed version 4.6.1 but where do I place the code?
It is not very clear to me now.For example this code:
<!-- Facebook Pixel Code --> <script> !function(f,b,e,v,n,t,s) {if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)}; if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0'; n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t,s)}(window, document,'script', 'https://connect.facebook.net/en_US/fbevents.js'); fbq('init', 'your-pixel-id-goes-here'); fbq('track', 'PageView'); </script> <noscript> <img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=your-pixel-id-goes-here&ev=PageView&noscript=1"/> </noscript> <!-- End Facebook Pixel Code -->
September 11, 2019 at 11:00 am in reply to: Configure Tag Manager in Cookie settings after update to 4.6.1 #1136985Another question, how to deal with a Facebook Pixel?
September 11, 2019 at 10:59 am in reply to: Configure Tag Manager in Cookie settings after update to 4.6.1 #1136984Hi Ismael,
But where do I place the mentioned script?
Regards,
JarmoHi,
I added the coupon field to my
mini-cart.php
in my child theme. Found out that I needed to erase my browse data to see the changes.
You can find the page in private content of my first question. You can add a product to your cart and use the coupon I mentioned in the private content to see how the flow is right now.I added this to my
mini-cart.php
code:<form class="checkout_coupon woocommerce-form-coupon" method="post"> <p style="color:white;"><?php esc_html_e( 'Kortingscode', 'woocommerce' ); ?></p> <p class="form-row form-row-first"> <input type="text" name="coupon_code" class="input-text" placeholder="<?php esc_attr_e( 'Coupon code', 'woocommerce' ); ?>" id="coupon_code" value="" /> </p> <p class="form-row form-row-last"> <button type="submit" class="button" name="apply_coupon" value="<?php esc_attr_e( 'Apply coupon', 'woocommerce' ); ?>"><?php esc_html_e( 'Apply coupon', 'woocommerce' ); ?></button> </p> <div class="clear"></div> </form>
Normally if you add the coupon in the cart page and remove it. It happens with AJAX and does not reload the page. Can I achieve this here too because now it reloads the page :(
I need to modify the ‘mini-cart.php’ file. I did it like /enfold-child/woocommerce/cart/mini-cart.php.
If I make any changes in it there aren’t any changes on the front-end. How is this possible?May 7, 2019 at 11:39 am in reply to: Google maps doesn't load while with specific plugin it does #1098048This reply has been marked as private.April 30, 2019 at 1:50 pm in reply to: Google maps doesn't load while with specific plugin it does #1095756The API settings are as follows:
– No App-restrictions
– No API-restrictionsApril 30, 2019 at 1:47 pm in reply to: Google maps doesn't load while with specific plugin it does #1095754Hi,
With the plugin it still doesn’t load properly.
But the main problem is the enfold settings says it is a valid code but it still doesn’t work.April 30, 2019 at 1:42 pm in reply to: Google maps doesn't load while with specific plugin it does #1095752Hi,
I made an admin account for you.
Credentials are in the private content.I installed the plugin so you can check what happens when you deactivate the plugin.
April 8, 2019 at 9:40 am in reply to: Wrap products with same subcategory in div WooCommerce #1088199Hi Mike,
It needs to auto detect which elements has the same category.
So when the customer adds a category I don’t have so edit the code again. -
AuthorPosts