Home › Forums › WoodMart support forum › Fixed Background and hide additional information Button
Fixed Background and hide additional information Button
- This topic has 8 replies, 2 voices, and was last updated 2 years, 12 months ago by Luke Nielsen.
-
AuthorPosts
-
December 10, 2021 at 10:15 am #338449
Peter_mueller80ParticipantI made a request about 1 month ago but unfortunately did not get an appropriate answer. hence my question again.
how can I hide “additional information” in the product , possibly CSS command.
I also need a CSS command for a fixed background pic. for mobile.
Attachments:
You must be logged in to view attached files.December 10, 2021 at 1:09 pm #338532
Luke NielsenKeymasterHello,
To be able to hide the “Additional Information” tab, please try to add this code to the functions.php file in your child theme.
if ( ! function_exists( 'wd_single_disable_additional_tab' ) ) { function wd_single_disable_additional_tab( $tabs ) { unset( $tabs['additional_information'] ); return $tabs; } add_filter( 'woocommerce_product_tabs', 'wd_single_disable_additional_tab', 105 ); }
Please, clarify the issue about the fixed background picture for mobile, also attach some screenshots for a better understanding.
Kind Regards
December 10, 2021 at 1:44 pm #338537
Peter_mueller80ParticipantOK thanks,
to the fixed background: I would like to insert a picture into the theme via css command so that it stays in the background when you scroll the page.
my previous CSS command for other themes does not work with this one.therefore I also need a CSS code that enables this with this theme.
December 10, 2021 at 2:33 pm #338549
Luke NielsenKeymasterHello,
To be able to set some background image for mobile, navigate to Theme Settings -> Custom CSS -> enter the code to the “Custom CSS for mobile” area.
.page .main-page-wrapper { background-image: url(http://woodmart62/wp-content/uploads/revslider/jewelry/jewelry-bg-slider-2.jpg); background-repeat: no-repeat; background-size: cover; background-attachment: fixed; background-position: center center; }
The URL for your image you can copy from the Media Library which is situated in Dashboard -> Media.
Kind Regards
December 14, 2021 at 3:48 pm #339494
Peter_mueller80ParticipantHello, thanks for the help.
the CSS code for the fixed background does not work for Iphone. can someone give me a CSS code that also works for iphone?
Unfortunately, the CSS code for hiding the additional information does not work either.
it would help me a lot if I knew how to edit the content.
Attachments:
You must be logged in to view attached files.December 15, 2021 at 8:10 am #339640
Luke NielsenKeymasterHello,
1. It seems that you have added the custom CSS code only to the “Custom CSS for desktop” area, to be able to show your background image for all devices, please enter this custom CSS to the “Global Custom CSS” area and check the issue.
2. It isn’t a CSS code, it is a custom PHP code and for hiding the “Additional tab” you should add it to the functions.php file in Appearance -> Theme Editor -> Woodmart Child.
https://monosnap.com/file/Y79no66nupVuAmwJrI47MbG1yZN8qU
Kind Regards
December 15, 2021 at 3:05 pm #339794
Peter_mueller80ParticipantHallo,
danke für deine Mitteilungen. auch wenn ich den CSS Code im Bereich global eintrage ändert sich nichts.
das bild ist zwar da aber es bleibt beim scrollen nicht stehen.
und wie komme ich zu dem Woodmart Child:functions.php?
habe sowas noch nie gemacht.
wie gesagt es würde mir auch völlig reichen wenn ich wüsste wie ich (im letzten Bild) das markierte bearbeiten can, das wäre sogar noch besser um ehrlich zu sein. ich wollte den button ja nur weg haben weil ich nicht weis wie ich den inhalt bearbeiten kann.
December 15, 2021 at 3:07 pm #339795
Peter_mueller80ParticipantSorry in English again.
Hi there,
thank you for your messages. even if I enter the CSS code in the global area, nothing changes.
the picture is there but it does not stop when scrolling.
and how do I get to the Woodmart Child: functions.php?
I’ve never done anything like that.
As I said, it would be enough for me if I knew how I (in the last picture) can edit the highlighted, that would be even better to be honest. I just wanted to have the button gone because I don’t know how to edit the content.
December 16, 2021 at 8:00 am #339896
Luke NielsenKeymasterHello,
1. In order to stop the picture when scrolling, please try to use the below custom CSS or remove this
background-attachment: fixed;
line from the custom CSS code that I added above..main-page-wrapper { background-image: url(http://xn--blumen-stilundblte-16b.de/wp-content/uploads/2021/10/backround-mobile3.png); background-repeat: no-repeat; background-size: cover; background-position: center center; }
2. The way to the functions.php file I have described above.
https://gyazo.com/859d466890c79efc849604344a11b13a
Kind Regards
-
AuthorPosts
Tagged: fixed Background/ hide Button
- You must be logged in to create new topics. Login / Register