• Could someone help me with enqueueing styles and scripts from my parent theme? There is quite a few js and css files, and I’m not sure the proper way to enqueue multiple files.

Viewing 10 replies - 1 through 10 (of 10 total)
  • What theme are you using? Where did you download it from?

    Thread Starter gradyjenkinz

    (@gradyjenkinz)

    I’m using the United Themes Brooklyn theme. My boss sent me a zip file of a clean version of it, but I’m currently working on a copy of the live site in a dev subdomain.

    If you use a commercial theme or plugin and need support, please go to their official support channel. In order to be good stewards of the WordPress community, and encourage innovation and progress, we feel it’s important to direct people to those official locations.

    https://helpdesk.unitedthemes.com

    Forum volunteers are also not given access to commercial products, so they would not know why your commercial theme or plugin is not working properly. This is one other reason why volunteers forward you to the commercial product’s vendors. The vendors are responsible for supporting their commercial product.

    Thread Starter gradyjenkinz

    (@gradyjenkinz)

    Okay my bad, thanks for your help!

    Thread Starter gradyjenkinz

    (@gradyjenkinz)

    Sorry Stephen, I don’t think my question is completely related to just being for Brooklyn. I’m just confused on how to correctly enqueue multiple CSS and JS files from a parent theme. If that is actually specifically for United Themes then I’m sorry for wasting your time lol.

    Have you reviewed the Codex page on child themes? Are you having a specific problem with anything on that page?

    The problem is that without being able to see how your theme is coded, there’s no way to know exactly what might be going wrong. Your theme’s developers do have the code and they should be willing to support you, because you’re their customer (and if they won’t, that’s not cool, IMO).

    Thread Starter gradyjenkinz

    (@gradyjenkinz)

    The problem is that I can’t access the UT forums. You can only create one account with the purchase code, and it says the one I have is used. I’m just an intern at my company and my boss has no memory of creating an account there, and I’ve tried emailing them but nobody has gotten back to me.

    The brooklyn parent theme has about 15 CSS files and 20 JS files.. do I need to enqueue all of them?

    Are you having a specific problem creating a child theme or are you trying to find out if there will be any problems before you start? If you can use the Brooklyn theme as a stand-alone theme, there probably shouldn’t be any problems creating a child theme.

    Thread Starter gradyjenkinz

    (@gradyjenkinz)

    I have a child theme that was previously developed by someone else who used @import instead of the current best practice, so I was trying to change it. If I just add

    add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
    function my_theme_enqueue_styles() {
        wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
    
    }

    then half of my site doesn’t work. So I was wondering if I was doing it wrong, or if I needed to enqueue JS files as well.
    dev.shoredigitalsolutions.com is my site

    I’m sorry, but without knowing your theme, there’s no way to know what might be the issue. If neither you nor your boss can access your theme’s support forum, then you may need to hire someone to help instead. If you decide to go that route, please check out https://jobs.wordpress.net/ and do not accept any offers that come from this forum.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Enqueue Scripts and Styles in child theme problems’ is closed to new replies.