ACF Pro with SlickJS [closed]

You should be using wp_enqueue_scripts instead of wp_footer to load your styles and scripts. Try adding jQuery as a dependency for slick-init.js and that should work. I suspect that the slick-init.js calls on the styles to create the specified look you want.

After I change CSS not updating in the browser

If you add a version number in the wp_enqueue_script() call – fourth argument – it will append a query string to the css file reference and most (if not all) browsers will see that as a cache-breaker and force the asset to be requested again from the server. https://developer.wordpress.org/reference/functions/wp_enqueue_script/ If you are hard-coding the script … Read more

Use Google Fonts and unicodes

It works for me. Try setting the font-family within that block as well. .cta:after{ content: “\2192”; color: #fff; font-weight: lighter; font-family: ‘Alegreya’, serif; }

Apply custom css for user role

To enqueue CSS in WordPress you can use: wp_enqueue_scripts action for the frontend login_scripts action for the login page admin_scriptsaction for the admin side, as you already know To check user’s roles you should get the user object and check the roles property. current_user_can() is function intended to check capabilities, not roles. So, to add … Read more

cookie free subdomain and @font-face

@font-face does not require cookies (unless you choose to cache fonts to avoid server hits), and having a subdomain will make no difference either. You may therefore have an issue with your URLs. Your paths in the first (multiple-line) example are relative to your css file; is your ‘fonts’ directory in the same directory as … Read more

First element/selector of enqueued CSS file breaks

Have you checked this document? https://codex.wordpress.org/Child_Themes I meant this in particular: If your child theme style.css contains actual CSS code (as it normally does), you will need to enqueue it as well. Setting ‘parent-style’ as a dependency will ensure that the child theme stylesheet loads after it. Including the child theme version number ensures that … Read more

Earlier stylesheet not overriding later one

I looked at my child theme’s functions.php and I found that I had commented out the line to enqueue the child style.css. I’m guessing that the stylesheet is loaded automatically because that is the active theme. I would suggest you try not explicitly loading your child theme’s stylesheet and see if that helps. P.S. Only … Read more

why has this element moved despite css being the same as other pages?

CSS might be the same, but in the 2nd link, your title is wrapped in a DIV as following: <div id=”page-top” class=”warranty-registration-page content-area”> </div> This element has a margin-top property with a value of 75px. This is why it is visible. Either wrap your title inside the following DIV, or add a CSS property for … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)