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.

WordPress fonts need to upload with Google fonts?

You should never touch any files in wp-includes or wp-admin. Why? Because the next time you update WordPress, any changes you made will get erased. Option 1 – Easy If you want to use Google fonts with your WordPress theme, try a plugin like Easy Google Fonts or WP Google Fonts. Option 2 – More … Read more

Remove header title form page through CSS [closed]

To hide the title (Winkelwagen) from that page: This is the CSS that you want to run: .c12.end.pageheading { display: none; } You can add that to your child theme’s style.css, or you can add the following to your child theme’s functions.php: add_action( ‘wp_head’, ‘hide_winkelwagen’ ); function hide_winkelwagen() { ?> <style itype=”text/css”> .c12.end.pageheading { display: … Read more

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; }

Add stylesheet per layout

If you are talking about a page template, then you can do a conditional check with is_page_template() and includethe CSS in the header with wp_enqueue_syle(). Something like this: function themename_include_page_specific_css() { if ( is_page_template( ‘template-name.php’ ) : wp_enqueue_style( ‘themename_page_specific_css’, get_template_directory_uri() . ‘/page-specific-style.css’ ); endif; } add_action( ‘wp_enqueue_scripts’, ‘themename_include_page_specific_css’ ); Keep in mind, that the parameter … Read more

I want to set global directory locations for my CSS and JS locations. How?

Sure you can do that. Create a simple plugin that looks something like this: <?php /* Plugin Name: SiteWide Assets Location Plugin URI: www.mysite.com Description: Global URI for commonly used CSS and JS files Version: 1.0 Author: Me License: None */ define( ‘SYSTEM_ASSETS’, $_SERVER[‘DOCUMENT_ROOT’] . ‘/somedirectory/’ ); Then, store your .css and .js files there … Read more

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