Forum Replies Created

Viewing 15 posts - 451 through 465 (of 1,124 total)
  • Author
    Posts
  • in reply to: Widget locations desktop vs mobile #10180
    Andy
    Keymaster

    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.).

    in reply to: Social Icon in top bar #10162
    Andy
    Keymaster

    Hi Robin

    They were using a plugin for this functionality. Sadly they didn’t reply to confirm or say which plugin was being used.

    in reply to: Sale banner integration with Woo Discount Rules #10146
    Andy
    Keymaster

    Hi 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>';
        }
    }
    in reply to: remove a post from blog page #10125
    Andy
    Keymaster

    You 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.

    in reply to: Possible to change the copyright info? #10088
    Andy
    Keymaster

    Do 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.

    in reply to: How to make the menu fixed at the top #9990
    Andy
    Keymaster

    Try this instead:

    #page {
        margin-top: 50px;
    }
    
    #site-navigation {
        position: fixed;
        margin-top: -50px;
        z-index: 9;
    }
    in reply to: How to change currency? #9983
    Andy
    Keymaster

    Go 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.

    in reply to: How to change currency? #9981
    Andy
    Keymaster

    In your dashboard, ‘WooCommerce’ > ‘Settings’ > ‘Currency Options’ select your ‘Currency’

    See WooCommerce documentation for currency options

    in reply to: Footer Copyright #9976
    Andy
    Keymaster

    There 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.

    in reply to: Video in Header #9954
    Andy
    Keymaster

    Hi, 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.

    in reply to: footer issues #9951
    Andy
    Keymaster

    Some 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.

    in reply to: footer issues #9950
    Andy
    Keymaster

    Did you try the solution I sent in my previous email replies to the same question you asked via our contact form?

    in reply to: Make the picture smaller #9946
    Andy
    Keymaster

    Can 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

    in reply to: Search form in header text color #9933
    Andy
    Keymaster

    Thanks 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.

    in reply to: Search form in header text color #9929
    Andy
    Keymaster

    Okay, 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.

Viewing 15 posts - 451 through 465 (of 1,124 total)