How to add styles in existing function?

Here’s couple of examples on how to add styling to your code. // Method 1. define classes in another variable, then do styling in styles.css $classes=”another-class”; $content .= ” <div id=\”my-id\”class=\”my-class\”> // Method 2. use backslashes to escape double quotes and add id and classes as needed, then do styling in styles.css <h3 class=\”{$classes}\”>stuff</h3> // … Read more

Bootstrap News: Image Modifciation

You would have to add the category via PHP on top of the image. First find the PHP template(s) where your page is rendered. This could be archive.php for the overview. For single posts this is usually single.php, or content-single-post.php. It depends on your theme. Then you find where the post thumbnail is being rendered, … Read more