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

Change default color scheme in twentyfifteen child theme?

Adding ‘default’ should work. Did you try calling the colors and seeing if your filter is working? If it’s not you could try adding a higher priority to your filter add_filter( ‘twentyfifteen_color_schemes’, ‘my_custom_color_schemes’, 99 ); function my_custom_color_schemes( $schemes ) { $schemes[‘default’] = array( ‘label’ => __( ‘my new default color’, ‘twentyfifteen’ ), ‘colors’ => array( … Read more

How do I create a child theme from PowerMag theme

Just create a folder named PowerMag-child Put style.css with below text /* Theme Name: PowerMag Child Theme URI: https://themeforest.net/item/powermag-the-most-muscular- magazinereviews-theme/4740939 Description: PowerMag Child Theme Author: djwd Author URI: http://themeforest.net/user/djwd Template: powermag Version: 1.0.0 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Text Domain: powermag-child */ functions.php with below code and nothing else … Read more