May 25, 2021 | Web Dev Resources
Problem You’re trying to upload a file into WordPress and you’re getting the error, “Sorry, this file type is not permitted for security reasons”. Solution Using FTP or File Manager, open your wp-config.php file (warning: for advanced... May 21, 2021 | Web Dev Resources
Problem You have items that need to be in a specific order in certain scenarios (e.g. an image should be above text on mobile, but not on desktop) Solution .wrapper { display:flex; flex-flow: column; } #item1 { order:4; } #item2 { order:3; } #item3 { order:2;... May 21, 2021 | Web Dev Resources
Problem You’re using Divi Theme or Divi Builder, and your images are getting cropped in the Blog, Gallery and/or Portfolio Modules. Solution – Blog Add this code snippet to your functions.php file. function ld_blog_crop_image_width($width) { return... May 20, 2021 | Web Dev Resources
Problem You have multiple objects with the same class, but you want to change the css for specific one(s) Solutions /* Selects the second <li> element in a list */ li:nth-child(2) { color: #6557ff; } /* Selects every fourth element among any group of... May 19, 2021 | Web Dev Resources
Problem You want to insert a Google Font into your website without uploading the font files Solution #1 Add to your page template: @import url(‘https://fonts.googleapis.com/css2?family=Montserrat&display=swap’); (replace “Montserrat” with... May 19, 2021 | Web Dev Resources
Problem So you have some shortcode, and you want to insert it into a PHP file? Just need this simple line of code: <?php echo do_shortcode(‘[name_of_shortcode]’); ?> Tada! That’s it!