Home Forums WoodMart support forum Theme Child + Loco Translate

Theme Child + Loco Translate

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #184806

    gotnet
    Participant

    Hi,
    i have some little problems with your theme.

    1. LocoTranslate not have a template page for theme child
    2. I want to translate text “Our Instagram” located in blog sidebar widget but loco not find,
    so i have used this code in child->function.php

    /** Translate custom strings*/
    add_filter('gettext', 'translate_text');
    add_filter('ngettext', 'translate_text');
    
    function translate_text($translated) {
    $translated = str_ireplace('Our Instagram', 'Seguici su Instagram', $translated);
    return $translated;
    }

    but still nothing.
    In other my sites this code always work…

    3. i want to edit css code in child theme,
    and i have added

    .widget a, .woodmart-widget a, div[class^="vc_wp"] a {
        color: #2d2d2d;
        font-weight: bold;
    }

    But seems child theme not work.

    Please let me know
    Thanks

    #184833

    Hello,

    First of all thanks for choosing our Theme, we are glad to be you in the WoodMart WordPress family :-).

    1) The string is not translatable using loco translate because it is coming from the text editor you can change it directly from Appearance >> Widgets >> Main Widget area.

    Screenshot for Clarification: https://ibb.co/LZhhDVJ

    2) Sorry but we cannot help you regarding hook code. This is beyond our limitations and support policy.

    3) For the Custom CSS please explain with some relevant screenshots of the specific area where you want to apply the CSS to check it myself and help you out accordingly.

    Best Regards.

    #184839

    gotnet
    Participant

    Hi,
    thanks for fast reply and awesome theme.

    My purpose is also usign style.css file of child theme without limits.
    for now i’m trying to change attributes of Post Categories widget links.
    See attachment

    Many Thanks

    Attachments:
    You must be logged in to view attached files.
    #184845

    Hello,

    You are Most Welcome.

    To change the widget categories links attributes you need to use typography settings under Theme Settings.

    Screenshot for Clarification: https://ibb.co/MNwPPgC

    You can also read our detailed documentation in the following link:
    https://xtemos.com/docs/woodmart/advanced-typography-settings/

    Best Regards.

    #184848

    gotnet
    Participant

    Ok,
    Thanks for your reply.

    But why i cannot use the style css file to override theme style.
    I’m a developer and designer and i want to change styles and attribute using also mediaqueries.
    And with your system all is global.

    Please Let me know.
    Thanks

    #184851

    Hello,

    Our Theme has different sections to add Custom CSS under Theme Settings >> Custom CSS. You can add CSS code that works individually for mobile, tablets, desktop versions.

    You need to enqueue a new stylesheet to make all the CSS work from the child theme. Its default WordPress behavior of the parent child theme working.

    OR

    You can read the following article for further help:
    https://wordpress.org/support/topic/child-theme-style-css-not-working-2/

    Best Regards.

    #185087

    gotnet
    Participant

    Hi,
    about typography section there is only a tab to change font size of widget titles.
    And if i change it trasform all widget in sidebar and in footer.
    There is not way to change only sidebar links font size.

    About your guide to child theme:
    https://wordpress.org/support/topic/child-theme-style-css-not-working-2/

    Why i need to create other child theme?

    I have activated already woodmart child and i want to use file style.css and function.php.
    How can i do ?

    Thanks

    #185097

    Hello,

    If you want to change the font size of the other elements then you need to use advanced typography settings and use the custom selector option to change the text according to your needs.

    Screenshot for Clarification: https://ibb.co/n72XJ5z

    You can also read our documentation for further help:
    https://xtemos.com/docs/woodmart/advanced-typography-settings/

    I haven’t provided you with the guide. I just asked to get help from the article. Because the child-theme behaviors are default for every WordPress theme. You can try checking by activating any other default WordPress theme.

    Best Regards.

    #185107

    gotnet
    Participant

    Hi sorry,
    but Advanced Typografy it is unusable for a designer.

    It allow only to change some attributes and not ALL:
    Font size, Line Height, color, color on hover, font family.

    I need to change more other:
    font-weight, background color, display, etc… etc….

    A designer work with a .css files not with a tool.

    Why your themechild not work ?
    I know how work wp theme child, and if you add some classes with attribute the site change.
    With your theme child not.

    Please explain how to work with woodmart-child style.css
    Thanks

    #185115

    Hello,

    I think you are misunderstanding what I actually want to tell you. To make the style.css file of the child theme work you need to enqueue it as well.

    I have taken a screenshot from wordpress.org just to clarify to you the actual working of the child theme.

    Screenshot for Clarification: https://ibb.co/Qf0z0BS

    Please read the following article for further help:
    https://developer.wordpress.org/themes/advanced-topics/child-themes/

    This article will surely clear your confusion.

    Best Regards.

    #185117

    gotnet
    Participant

    Hi,
    very sorry, i think you are misunderstanding also too.
    I do not want to include a custom child theme.
    I want to use a file style.css inside your theme folder “woodmart-child”.

    Also i have other problems with your theme.
    For example i want to change background color of promo popup by going to
    Themeoptions -> Shop -> PromoPopup

    and here i have set a background to hex blue color.

    But if you click on newsletter link the background color not change,
    it is alway black.

    Also i cannot change other button color on show and other.
    Not work.
    Actually “add to cart button is green” and not change..

    Please help me
    Thanks

    #185125

    Hello,

    1) As I mentioned in my previous reply if you want to use the style.css file of child theme then you need to enqueue it as I referred you the link.You don’t need to use any other custom child theme.

    You just need to set up the WoodMart child theme according to the article. This will surely fix the issue.

    2) I have visited your website and there is no promo popup added to your website. Please provide with some relevant screenshots of the specific area to check it myself and help you out accordingly.

    3) You can set The add to cart button color Theme Settings >> Styles & Colors >> Buttons.

    Screenshot for Clarification: https://ibb.co/F845T51

    Best Regards.

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