register dependency css and js inside a plugin class

You’re using the incorrect hook. The only hook is wp_enqueue_scripts (plural). You use wp_enqueue_style() and wp_register_script() etc. on that hook, but the hook is always the same. So this: add_action(‘wp_enqueue_script’ , array( $this, ‘initBootstrap’ )); add_action(‘wp_enqueue_style’ , array( $this, ‘initBootstrap’ )); add_action(‘wp_register_script’ , array( $this, ‘initParallax’ )); add_action(‘wp_register_style’ , array( $this, ‘initParallax’ )); add_action(‘wp_register_script’ , … Read more

Img load while refreshing

You are resizing your logo in your css, giving that flash of unstyled content on load/reload. It’s original size is 150x150px. You have at least two options: Change it for a smaller version (75x75px), avoiding the jarring resize. Alter the css to make it display:none (like your other logos) and make it fade in with … Read more

How to replace wordpress css or js file with external file?

From what I understood you want to override some particular CSS properties from style.css of a WordPress theme. There might be two different situations here which needs different solutions: If you are developing your own theme then you can simply edit your functions.php inside your theme files and add any JS or CSS file that … Read more

Photo cover in WooCommerce

You are using cropped image. Your image is 300×300 cropped while the section is bigger. Your first div is already set to 40% width, so limiting the image to 40% in that section doesn’t make sense. Use properly sized thumbnail or actual image. Here is the result i got using actual image /3dcc1cba-c209-4a1a-a1f2-edd17fc8b58e.jpg & NOT … Read more