Home Forums WoodMart support forum Fixed Background and hide additional information Button

Fixed Background and hide additional information Button

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #338449

    Peter_mueller80
    Participant

    I 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.
    #338532

    Luke Nielsen
    Keymaster

    Hello,

    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

    #338537

    Peter_mueller80
    Participant

    OK 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.

    #338549

    Luke Nielsen
    Keymaster

    Hello,

    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.

    https://prnt.sc/22m3g8s

    Kind Regards

    #339494

    Peter_mueller80
    Participant

    Hello, 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.
    #339640

    Luke Nielsen
    Keymaster

    Hello,

    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

    #339794

    Peter_mueller80
    Participant

    Hallo,

    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.

    #339795

    Peter_mueller80
    Participant

    Sorry 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.

    #339896

    Luke Nielsen
    Keymaster

    Hello,

    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

    https://prnt.sc/238dhka

    https://prnt.sc/238dput

    Kind Regards

Viewing 9 posts - 1 through 9 (of 9 total)