Viewing 11 replies - 1 through 11 (of 11 total)
  • Hi

    seems you change hook priorities in product single page.

    Should do add this code to your code:

    add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_rating', 6 );
    
    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_rating', 10 );

    and style:

    <style>
    .summary.entry-summary .woocommerce-product-rating{disply:block;margin:0 5px;width:100%}
    </style>

    of course you change priority and should set priority based your changes.
    Good Luck

    Thread Starter nacionalstore

    (@nacionalstore)

    Hello!

    Did you add this code? I have little knowledge in wordpress!

    Hi,
    Sorry. I can’t

    add first block to active theme/child theme functions.php file and second to theme directory/style.css

    Good luck

    Thread Starter nacionalstore

    (@nacionalstore)

    In style.css, the following message appears:

    /**
    * /*!
    * Theme Name: Shoptimizer
    * Theme URI: https://www.commercegurus.com/wordpress-themes/shoptimizer
    * Author: CommerceGurus
    * Author URI: https://www.commercegurus.com/
    * Description: Shoptimizer is the perfect theme for your next WooCommerce project designed around speed and conversions.
    * Version: 2.0.4
    * License: GNU General Public License v2 or later
    * License URI: https://www.gnu.org/licenses/gpl-2.0.html
    * Text Domain: shoptimizer
    * wc_gzd_compatible: true
    * Tags: e-commerce, two-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, featured-images, full-width-template, threaded-comments, accessibility-ready, rtl-language-support, footer-widgets, sticky-post, theme-options
    * CGMeta: 1584:a523c024-0f7c-47a5-a11a-3e11d0914cc2
    *
    * This theme, like WordPress, is licensed under the GPL.
    * Use it to make something cool, have fun, and share what you’ve learned with others.
    *
    * Shoptimizer is based on Underscores https://underscores.me/, (C) 2012-2019 Automattic, Inc. and Storefront https://github.com/woocommerce/storefront (C) 2012-2019 Automattic, Inc.
    * Resetting and rebuilding styles have been helped along thanks to the fine work of
    * Eric Meyer https://meyerweb.com/eric/tools/css/reset/index.html
    * along with Nicolas Gallagher and Jonathan Neal https://necolas.github.com/normalize.css/
    *
    *
    * Shoptimizer documentation is available here: https://www.commercegurus.com/docs/shoptimizer-theme/
    *
    * Rivolicons License: Created by Hadrien Boyer and licensed under Creative Commons 4.0 – https://creativecommons.org/licenses/by-sa/4.0/
    * Rivolicons icon pack homepage – https://rivolicons.hadrien.co/
    * Images License: GNU General Public License v2 or later
    *
    * ======
    * Note: Do not edit this file. If you wish to add your own CSS we strongly recommend creating your own child theme, or installing a custom CSS plugin.
    * All main styles are in /assets/css/main/main.css
    * ======
    *
    */

    Thread Starter nacionalstore

    (@nacionalstore)

    You are giving this problem:

    https://ibb.co/4sGrXK3

    OK

    Please create a file & save following snippet in it as php file and put it in a folder and compress(Zip) then from Plugins > Add new upload:

    
    <?php
    /**
     * Plugin Name: My First Plugin
     * Plugin URI: https://www.mywebsite.com/my-first-plugin
     * Version: 1.0
     * Author: Your Name
     * Author URI: https://www.mywebsite.com
     */
    add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_rating', 6 );
    
    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_rating', 10 );
    
    add_action( 'wp_head', function() { if ( is_product() { echo '<style>.summary.entry-summary .woocommerce-product-rating{disply:block;margin:0 5px;width:100%}</style>'; } ) } );
    
    ?>

    based on this steps you create a simple plugin.

    enjoy it!

    Thread Starter nacionalstore

    (@nacionalstore)

    Good morning friend, how are you? Talk to the theme support and he mentioned:

    Hi,

    There is a child theme that you can use here that has a style.css file:
    https://www.commercegurus.com/docs/shoptimizer-theme/should-i-use-a-child-theme/

    You don’t copy the <style> and </style> parts – just the main rule.

    I was unable to remove the element. I saw that this element is together with a package plugin, they are together in the case! A div class for this element is a single fswp_installments_price

    Hi, Thanks bro

    Try adding this to your child theme’s functions.php file:

    add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_rating', 6 );
    
    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_rating', 10 );

    and:

    .summary.entry-summary .woocommerce-product-rating{disply:block;margin:0 5px;width:100%}

    to your child theme’s style.css.

    Thread Starter nacionalstore

    (@nacionalstore)

    I’m not getting friend! I did all the steps but it’s not working! Could you give me your email so I can create a user on my wordpress and you see that? So I will save your time! Thank you in advance for your attention!

    Plugin Support AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Alterar posi??o Elemento’ is closed to new replies.