Home › Forums › Basel support forum › Move blocks & CSS
Move blocks & CSS
- This topic has 13 replies, 3 voices, and was last updated 8 years, 2 months ago by
Artem Temos.
-
AuthorPosts
-
March 2, 2017 at 7:50 pm #10417
makisParticipantHello,
I have some difficulties with moving some blocks and some css. May you help me?Makis
March 3, 2017 at 8:01 am #10423
Eric WatsonParticipantHello,
Thank you so much for contacting our support center.
Here is a code snippet that you may add to the
functions.php
file in your child theme to swap tabs content with products.add_action( 'basel_after_product_content', 'basel_open_upsells_container', 40 ); add_action( 'basel_after_product_content', 'woocommerce_upsell_display', 50 ); add_action( 'basel_after_product_content', 'basel_close_upsells_container', 60 ); add_action( 'wp', 'basel_remove_upsells', 1000 ); function basel_remove_upsells(){ remove_action( 'basel_woocommerce_after_sidebar', 'woocommerce_upsell_display', 10 ); } function basel_open_upsells_container(){ echo '<div class="container related-and-upsells">'; } function basel_close_upsells_container(){ echo '</div>'; }
Unfortunately, we can’t change the color of a text-underline property in CSS.
And here is a snippet that you need to add to the Custom CSS to remove red line.
.single-product .upsells .slider-title:before{ display: none; }
Kind Regards
XTemos StudioMarch 3, 2017 at 2:11 pm #10428
makisParticipantHello again
Thanks for your kind help!!! It works perfect but i have a problem that the upsell block shows twice…may you take a look and remove or add some code to function.php?March 3, 2017 at 2:46 pm #10429
Eric WatsonParticipantHi, replace the line in
functions.php
fileadd_action( 'wp', 'basel_remove_upsells', 1000 );
with this one
add_action( 'wp', 'basel_remove_upsells', 1100 );
.March 3, 2017 at 3:16 pm #10432
makisParticipantSorry again but now i have some changes to product layout…may you help me?
March 3, 2017 at 3:27 pm #10434
Artem TemosKeymasterDo you mean that they are caused by code we gave you? Please, temporarily remove it so we can see is it caused by changes or not.
March 3, 2017 at 3:27 pm #10435
makisParticipantYes they are caused from the final code. I remove it now and back again to the first code you gave me. May you test it?
March 3, 2017 at 3:35 pm #10437
Artem TemosKeymasterOK, we see the issue. But unfortunately, it means that this block can’t be moved to the desired position without any breaks. If you want to do this you may need to perform additional code customization to change product page markup completely that is out of our free theme support scope.
Thank you for understanding.
March 3, 2017 at 3:42 pm #10438
makisParticipantPlease see the note.
March 3, 2017 at 3:56 pm #10440
Eric WatsonParticipantLets try an another hot fix using CSS. Try to add the following code snippet to the Custom CSS in Theme Settings
.single-product .related-and-upsells .variations_form{ display: none; } .single-product .related-and-upsells .price{ font-size: 16px; } .single-product .related-and-upsells .price .amount{ color: #949494 !important; }
March 3, 2017 at 4:15 pm #10441
makisParticipantYES!!!! It works and you’re perfect!!!
A last favor…may you help me to half the distance between the blocks to close the project?
Attachments:
You must be logged in to view attached files.March 3, 2017 at 4:18 pm #10443
Artem TemosKeymasterYou can reduce this margin with the following Custom CSS code
.single-product-content .product-image-summary { margin-bottom:10px; }
It would be kind of you if you will rate our theme with 5 stars and leave a positive feedback on Theme Forest 🙂
Kind Regards
XtemosMarch 3, 2017 at 4:31 pm #10445
makisParticipantThanks a lot for your kind help!
March 3, 2017 at 4:47 pm #10447
Artem TemosKeymasterYou are welcome 🙂
-
AuthorPosts
The topic ‘Move blocks & CSS’ is closed to new replies.
- You must be logged in to create new topics. Login / Register