Forum Replies Created
-
AuthorPosts
-
AndyKeymaster
Have you tried the “Shop Filters” widget area?
This is designed specifically to display horizontally above the products on the products page (shop page, product categories etc.).
AndyKeymasterHi Robin
They were using a plugin for this functionality. Sadly they didn’t reply to confirm or say which plugin was being used.
AndyKeymasterHi Frederik,
These are the two functions that output the standard sale price % discount;
To change either of these functions, you will need to copy the code – making any changes to use your custom discount rules – into the functions.php file of a child theme.
This
azuma_before_loop_sale_flash
function just adds the start of the theme’s div wrapper, so no need to modify this if you don’t need to change it:function azuma_before_loop_sale_flash() { global $product; if ( $product->is_on_sale() ) { echo '<div class="sale-flash">'; } }
This
azuma_after_loop_sale_flash
function calculates the discount % and outputs it, so you would need to remove the code that calculates the discount and replace with your own code:function azuma_after_loop_sale_flash() { global $product; if ( $product->is_on_sale() ) { if ( ! $product->is_type( 'variable' ) && $product->get_regular_price() && $product->get_sale_price() ) { $discount_price = $product->get_regular_price() - $product->get_sale_price(); if ( $discount_price > 0 ) { $max_percentage = ( $discount_price / $product->get_regular_price() ) * 100; } else { $max_percentage = 0; } } else { $max_percentage = 0; foreach ( $product->get_children() as $child_id ) { $variation = wc_get_product( $child_id ); $price = $variation->get_regular_price(); $sale = $variation->get_sale_price(); $percentage = ''; if ( $price != 0 && ! empty( $sale ) ) { $percentage = ( $price - $sale ) / $price * 100; } if ( $percentage > $max_percentage ) { $max_percentage = $percentage; } } } echo '<br /><span class="sale-percentage">-' . esc_attr( round($max_percentage) ) . '%</span>'; echo '</div>'; } }
for example:
function azuma_after_loop_sale_flash() { global $product; if ( $product->is_on_sale() ) { /* YOUR CUSTOM CODE TO CALCULATE YOUR DISCOUNT */ echo '<br /><span class="sale-percentage">-' . esc_attr( $your_calculated_discount ) . '%</span>'; echo '</div>'; } }
AndyKeymasterYou can hide a specific post from view with a bit of custom CSS.
This will hide the post with ID 123 from the blog page only:
.blog article.post-123 { display: none; }
…or this will hide the post from everywhere (blog page, search results, tag archives, date archives etc) but leaving it visible only on the category page:
body:not(.category) article.post-123 { display: none; }
As always, the code should be added to Customize > Additional CSS.
AndyKeymasterDo you mean the text in the footer that says “Powered by WordPress | Theme: Jorvik by uXL Themes”?
Sorry, there is no option to change this in this theme.
AndyKeymasterTry this instead:
#page { margin-top: 50px; } #site-navigation { position: fixed; margin-top: -50px; z-index: 9; }
AndyKeymasterGo to ‘WooCommerce’ > ‘Status’ > ‘Tools’
Next to ‘WooCommerce transients’, click the ‘Clear transients’ button.
Next to ‘Clear customer sessions’, click the ‘Clear’ button.That should force it to change.
If it is still not changed, add a product to the cart and then remove it and it should be okay.AndyKeymasterIn your dashboard, ‘WooCommerce’ > ‘Settings’ > ‘Currency Options’ select your ‘Currency’
AndyKeymasterThere is a widget area named ‘Site Info’ that you can add any widget(s) to. When this contains a widget, the content of that widget will be displayed in place of the “Powered by WordPress…” text.
Go to Appearance > Widgets and add any of your available widgets (Text, HTML, Image etc.) to the ‘Site Info’ widget area.
AndyKeymasterHi, the version of Trusted Pro that you have is more than 2 years old, and it does not have the video header option.
You can renew your theme license at any time (25% off the regular price) in your account, and update to the latest version.
AndyKeymasterSome of the Elementor content blocks on the page have fixed positioning and fixed widths that are too big for the page area, so it is causing issues.
It is not the theme footer that is too big, it is a large white blank area below the fixed position Elementor blocks. The theme footer is only the narrow dark band at the bottom of the page which is only 50 pixels high.
Add this CSS to Customize > Additional CSS:
.elementor, .elementor-element { max-width: 100% !important; }
This should help but you really need to fix the Elementor blocks that are causing the issues.
AndyKeymasterDid you try the solution I sent in my previous email replies to the same question you asked via our contact form?
AndyKeymasterCan you use a smaller image for that product?
I can only imagine that if you have to scroll for 2 seconds to reach the end of the image, then it must be a very large image.
Sorry, I don’t understand how the theme can help with this. If I have misundertood your question please let me know more details and a link to the product in question so I can take a look.
Thanks
AndyKeymasterThanks for letting me know it works.
-webkit-appearance: none;
should have been included in the theme so that the styling will work with safari. I’ll get the theme updated with this any other form inputs where it may be missing.AndyKeymasterOkay, please remove the CSS I gave you earlier and replace with this:
#masthead .search-form input[type="search"], #masthead .woocommerce-product-search input[type="search"] { -moz-appearance: none; -webkit-appearance: none; background: #2d364c; }
Let me know if that works, thanks.
-
AuthorPosts