Site logo

[Support request] Child theme headings need to be changed.

Home Forums Support [Support request] Child theme headings need to be changed.

Home Forums Support Child theme headings need to be changed.

Viewing 15 posts - 1 through 15 (of 23 total)
  • Author
    Posts
  • #1761116
    locate-australian

    To whom this may concern,

    Hi,

    How can I change headings in our Generate Press Premium child theme?

    I have used the SayWhat? plugin in the past to make changes to other headings/labels within our theme, for our WC Vendors Pro marketplace but I am not able to make the changes for our WooCommerce/WordPress Admin.

    Do you know how I can make changes?

    Kind regards,

    L.A.

    #1761224
    Elvin
    Staff
    Customer Support

    Hi there,

    Child themes can be edited manually through FTP access or through Appearance > Theme Editor if it’s the currently active theme.

    As for FTP credentials, you’ll need to get that from your Host.

    #1761255
    locate-australian

    Hi Elvin,

    Thank you for your reply!

    I would like to edit the headings/labels in our WordPress/WooCommerce Admin. area.

    I would also prefer to not directly edit the Child Theme PHP.file, as Generate Press documentation warns that it could create other issues, is that correct?

    Do you know the text domain/s that I would need to use to make changes? Or could you please tell me what to look for in the PHP.file regarding WordPress & WooCommerce strings, so I can find the text domain :).

    Kind regards,

    L.A.

    #1761312
    Elvin
    Staff
    Customer Support

    If you’re using template files on your child theme, there’s a good chance your headings are customized so sure way to make any change is to actually check the template code for it.

    My recommendation is to inspect the rendered front-end page first. Check for the target element’s element tag and class/es. You then search these class/es and element tags within your child theme’s template files to know which ones to change.

    #1762808
    locate-australian

    Hi Elvin,

    I don’t know if we are using templates files on our child theme, or how to write code or where to look.

    Do you know how I can use the SayWhat? plugin to make the changes instead of directly altering PHP.file code?

    Kind regards,

    L.A.

    #1762881
    Elvin
    Staff
    Customer Support

    Do you know how I can use the SayWhat? plugin to make the changes instead of directly altering PHP.file code?

    That’s out of our scope of support, unfortunately.

    If you must use it, I recommend contacting their support for help or reading their documentation for usage guidance.

    #1763011
    locate-australian

    Hi Elvin,

    Thank you for your quick response & I do understand that another plugin being out of your scope of support (sorry!).

    I checked Generate Press documentation regarding adding PHP, which says that I can ‘use the functions.php file to add your PHP.’

    Are you able to please tell me the code of the strings that I would like to alter? So I can change the content of the strings.

    Kind regards,

    L.A.

    #1763113
    Elvin
    Staff
    Customer Support

    Are you able to please tell me the code of the strings that I would like to alter? So I can change the content of the strings.

    We can if you let us see it and explain clearly what you specifically want to do with it.

    We can’t apply it directly to your site do. It’s against our policy to do any changes to any user’s site.

    #1764810
    locate-australian

    Hi Elvin,

    Thank you!

    All I require from you-Generate Press is the correct ‘TEXT DOMAIN’ & I can make all of the changes myself.

    The grammar within our WordPress & WooCommerce administration dashboard is inconsistent for the headings, labels & options present in drop down menus. Heading & labels switch between sentence case (where only the 1st letter in the sentence is capitalised) & title case (a capital letter at the start of relevant words), plus I have seen 1 or more labels that use an abbreviation, etc.

    The following is an example of what I am referring to & the list can be found if you go to our WP Admin. > WC Vendors > Settings > Capabilities > General. I have added ‘(sentence case)’ next to the labels that are in sentence case for your convenience.

    Edit Live Products
    Publish Approval
    Edit approved products (sentence case)
    Orders
    View Orders
    Export Orders
    Front End Sales Reports
    Pro Features
    Product management (sentence case)
    Order management (sentence case)
    Coupon management (sentence case)

    I have replaced other strings in our front-end user interface using the SayWhat? plugin, which only requires the original string, the correct text domain & a replacement string (I have not needed to add a ‘text context’ yet).

    Alternatively, if you are not able to provide the exact text domain/s, could please tell me how & where to find the correct domains?

    Thank you in advance :).

    #1764936
    Elvin
    Staff
    Customer Support

    All I require from you-Generate Press is the correct ‘TEXT DOMAIN’ & I can make all of the changes myself.

    Some parts use 'generatepress' text domain. Some use 'gp_premium'. Test between the 2 and see which one works for any particular bodies of text you want to select. It’s mostly ‘generatepress’ though. ‘gp_premium’ text domain is used by plugin UI translations.

    WC vendors plugin may have it’s own text domain. That one, you should ask the support/plugin developer.

    #1766700
    locate-australian

    Hi Elvin,

    Thank you for providing the text domains.

    I have just tested the domains for one string & neither of the domains works. Any suggestions about what to do next?

    Kind regards,

    L.A.

    #1766720
    Elvin
    Staff
    Customer Support

    I have just tested the domains for one string & neither of the domains works. Any suggestions about what to do next?

    That makes sense, that’s why I mentioned WC Vendors plugin having its own text domain. The ones you’re trying to change may be coming from it.

    I don’t know what they use, unfortunately. You’ll have to ask their support for that. 🙂

    #1771881
    locate-australian

    Hi Elvin,

    Thank you for your reply, I have asked WC Vendors & they have provided their text domain but it didn’t work, that’s why they referred me to our Theme Developer, who is Generate Press.

    What would you do if you were in my situation :)?

    Kind regards,

    L.A.

    #1771886
    Elvin
    Staff
    Customer Support

    Hi Elvin,

    Thank you for your reply, I have asked WC Vendors & they have provided their text domain but it didn’t work, that’s why they referred me to our Theme Developer, who is Generate Press.

    What would you do if you were in my situation :)?

    Kind regards,

    L.A.

    Here’s a few things.

    I’ll have to know what exactly are the text you’re trying to change/translate.

    I’ll then, inspect the page for any closest clues I can do a string search with like element classes or IDs. (example: class="entry-title" or id="masthead"). I can literally just use this to search within the codes, assuming the classes/ID are not dynamic.

    I’d also do a search within the code for a literal string I’m trying to change/translate. Example: If I’m trying to translate “Leave a Comment” text string, I’d search “Leave a Comment” on the codes. Normally you’d find something like _e('Leave a Comment', 'textdomain') or _x('Leave a Comment', 'textdomain') or something of similar sort.

    I’ll do this mentioned search on a theme or plugin’s github page for an easier access.

    Example: searching for "Leave a Comment" string and/or text domain. https://github.com/tomusborne/generatepress/search?q=Leave+a+Comment

    If you’re using Linux. Download the theme and/or plugin files involved and do a GREP on them.

    #1771929
    locate-australian

    Hi Elvin,

    Thank you for your super fast reply!

    I have found 3 examples:

    #1. Example:

    WP Admin > WC Vendors > Settings > General :
    I would like the option label ‘Vendor login redirect’ to be updated to title case, capital letters at the start of each word – ‘Vendor Login Redirect’.

    #2. Example

    WP Admin > WooCommerce > Settings > Shipping: The Shipping tabs:
    Shipping zones | Shipping options | Shipping classes | Vendor Shipping

    I would like the 1st letter of ‘zones, options & classes’ to be capitalised – Zones, Options, Classes’, so all Shipping tab options appear in ‘title case’ please.

    #3. Example

    WP Admin > WooCommerce > Settings > Shipping > Vendor Shipping:

    I would like the option label ‘Include product tax’ to be updated to title case, capital letters at the start of each word – ‘Include Product Tax’.

    Question: Who enters the labels into the strings? Would it have been our Web Developer?

    Kind regards,
    L.A.

Viewing 15 posts - 1 through 15 (of 23 total)
  • You must be logged in to reply to this topic.