Support for Envato Buyers › Forums › DGWork › Modifying css or php doesn't change anything
- This topic has 8 replies, 2 voices, and was last updated 6 years, 4 months ago by FocuxTheme Support.
-
AuthorPosts
-
-
August 20, 2018 at 6:29 pm #21292ProtonParticipant
Hi everyone !
I’m trying to modifify the CSS and the PHP of the little label which is displayed on each products of the page.
dgwork.css
.dgwork-product-grid .type-download .freeLabel{ width:65px; height:65px; position: absolute; top:-10px; right:-10px; z-index: 10; text-align: center; line-height: 50px; background:#ba3e3e; color:#fff; border-radius: 200px; }
content-downloads.php
if($price==0){ if($hide_free<>1){ echo '<div class="freeLabel">'.esc_attr__('Gratuit !','dgwork').'</div>'; } $button_text =esc_attr__('Download','dgwork'); }
I have modified just few things like the width, the color and the text but it doesn’t do anything and i don’t understant why.
Thank you in advance for your help
Regards,
-
August 21, 2018 at 6:42 pm #21297FocuxTheme SupportKeymaster
Hi
These codes are only for the product category page. If you want to change the label of the products grid on the homepage, you should use the following CSS selector:
.tmvs-grid .post .freeLabel{ width: 50px; height: 50px; position: absolute; top: -10px; right: -10px; z-index: 10; text-align: center; line-height: 50px; background: #3ebab2; color: #fff; border-radius: 200px; }
By the way, I suggest you customize the theme based on the child theme. Do not modify the parent theme files.
For changing the text, I recommend you use Loco translation plugin.
Thanks
-
August 21, 2018 at 7:35 pm #21298ProtonParticipant
Thank you for your response but finally i used Loco Translation and i translated the “Free!” text but it doesn’t do anything. It’s still written “Free!” on the products grid and modifying CSS as you said doesn’t change anything too.
I will add few more questions here :
First, the images on a product page in the little slideshow don’t fit the frame and when i click on the preview zoom it says the page cannot be found.
Second, the buttons register, purchase history, discounts and edit profile bring me to the home page and i don’t know why.
Regards,
-
August 23, 2018 at 3:28 pm #21339ProtonParticipant
I need an answer please
-
August 28, 2018 at 8:08 am #21371FocuxTheme SupportKeymaster
I’m so sorry for the delay!
For the free label, if you want to change the free label which is generated by page builder, you should use the following CSS and find “Free” string in ThemeVan Shortcodes plugin with Loco plugin.
.tmvs-grid .post .freeLabel{ width: 50px; height: 50px; position: absolute; top: -10px; right: -10px; z-index: 10; text-align: center; line-height: 50px; background: #3ebab2; color: #fff; border-radius: 200px; }
But if the free label on the product category page, you should use this CSS:
.dgwork-product-grid .type-download .freeLabel { width: 50px; height: 50px; position: absolute; top: -10px; right: -10px; z-index: 10; text-align: center; line-height: 50px; background: #3ebab2; color: #fff; border-radius: 200px; }
-
August 28, 2018 at 8:10 am #21372FocuxTheme SupportKeymaster
For the product image, can I check your website?
For the last issue, please go to Appearance > Theme options > Shop page, you will find “Select Account page” and “Select checkout page”, just choose the correct page for these two options.
Thanks
-
August 29, 2018 at 11:20 am #21404ProtonParticipantThis reply has been marked as private.
-
August 29, 2018 at 11:25 am #21405ProtonParticipant
And i selected the right page in theme option but i can’t access to Edit Profile or Discount… even the resgister is still not working
Thanks in advance
-
August 29, 2018 at 4:16 pm #21408FocuxTheme SupportKeymaster
Sorry for these issues, could you post the temporary WP login details via private reply, I will check all settings and fix the issue soon.
Thanks
-
-
AuthorPosts
- You must be logged in to reply to this topic.