Blog

Removed Nitropack Footer badge Code.

Use this code on your js files.

document.addEventListener(“DOMContentLoaded”, function(){ let divc = document.querySelectorAll(‘div[style]’); for (let i = 0, len = divc.length; i < len; i++) { let actdisplay = window.getComputedStyle(divc[i], null).display; let actclear = window.getComputedStyle(divc[i], null).clear; if(actdisplay == 'block' && actclear == 'both') { divc[i].remove(); } } });

Write WordPress code for WordPress dashboard

Write WordPress code for WordPress dashboard

add the code on functions php file on active theme.
add_action(‘admin_head’, ‘my_custom_css_do’);
function my_custom_css_do() {
echo ‘

‘;
}

Use CSS property for WordPress Image

.hero-image {
  background-image: url("photographer.jpg"); /* The image used */
  background-color: #cccccc; /* Used if the image is unavailable */
  height: 500px; /* You must set a specified height */
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: cover; /* Resize the background image to cover the entire container */
}

It is very important for an image to place correctly on the wordpress page.