Alterar posi??o Elemento
-
Bom dia! Estou com dificuldades em alterar a posi??o de elemento na página do meu produto!
Atualmente está assim:
https://ibb.co/1RWb1GRe gostaria que ficasse assim:
https://ibb.co/LrBJ9fxpoderiam me ajudar? Agrade?o desde já a aten??o!
Abra?o
The page I need help with: [log in to see the link]
-
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 LuckHello!
Did you add this code? I have little knowledge in wordpress!
Hi,
Sorry. I can’tadd first block to active theme/child theme
functions.php
file and second totheme directory/style.css
Good luck
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
* ======
*
*/You are giving this problem:
OK
Please create a file & save following snippet in it as php file and put it in a folder and compress(
Zip
) then fromPlugins > 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!
- This reply was modified 4 years, 8 months ago by Hamid Reza Yazdani.
- This reply was modified 4 years, 8 months ago by Hamid Reza Yazdani.
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.
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!
There’s a similar thread here https://www.ads-software.com/support/topic/move-price-above-description-not-working/
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.
- The topic ‘Alterar posi??o Elemento’ is closed to new replies.