how to prevent all css and javascripts files from loading

I’m not really sure why you’d want to do this…but the only thing I can think of that might work is something like this: function prefix_block_resources(){ if(is_admin())return; //I can’t imagine any scenario where blocking scripts in the admin area would be wise. global $wp_scripts; global $wp_styles; $wp_scripts->queue = array(); $wp_styles->queue = array(); return; } add_action(‘wp_head’, … Read more

Changing blog style [closed]

The styling of WordPress sites is nearly exclusively defined by its theme. You can typically discover theme by examining the source for style.css file, which contains header with theme information. In this specific case it would be commercial Porto theme, which you can purchase and use for your site.

Faster fonts on mobile

WordPress has wp_is_mobile() function to detect mobile and handheld devices. You can use that to define your enqueue function to load fonts conditionally. You can enqueue fonts for non mobile devices like this. function my_enqueue_function() { if ( !wp_is_mobile() ) { wp_enqueue_style( ‘gfonts’, ‘http://fonts.googleapis.com/css?family=Arbutus+Slab’, false, NULL, ‘all’ ); } } add_action( ‘wp_enqueue_scripts’, ‘my_enqueue_function’ );

Is it safe to use WordPress generated classes?

Post ID Specific Classes are not reliable at all. The ID is based on when the page was created ( in what order since IDs auto-increment ). If the user “accidently” permanently deletes the page and needs to recreate it the page will have a new ID and thus not use any of the predefined … Read more

Is there a way to add additional CSS styles to the styles css file dynamically?

You can enqueue a different stylesheet only for index.php using conditional tags The following code should be added in functions.php /** * Proper way to enqueue scripts and styles */ function theme_name_scripts() { if ( is_home() ) { wp_enqueue_style( ‘style-name’, get_template_directory_uri() . “/path_to_file/yourStylesheet.css’ ); } } add_action( ‘wp_enqueue_scripts’, ‘theme_name_scripts’ );

Image getting out of container [closed]

Change hentry CSS and add overflow to hidden. Like this. .hentry { margin: 0px 0px 0.5em; padding: 5px 0px 0em 0.4em; border-bottom: 1px solid #ccc; overflow: hidden; } This will fix the issue of image being getting outside of the article container.