Cannot figure out how to center div in WordPress theme [closed]

As mentioned in my comment, http://howtocenterincss.com/ is a great resource to get the necessary CSS to horizontally or vertically center containers or paragraphs in CSS. Since you mentioned the text should be centered, the wbesite would give you this solution: <div style=”text-align:center;”>Text Content</div> If you want to center a container instead, margin-right: auto; margin-left: auto; … Read more

Customize “Continue Reading” text [closed]

The solution (or problem) is not limited to the 2017 theme. This is something you can add to any theme. Since it involves changing the functions.php file, you should first make a Child Theme of the 2017 theme. (Ask the googles how to do that….and why you would use a Child Theme rather than changing … Read more

Deactivate Plugin on Theme Switch

I haven’t tested this, so it might not work correctly, but the essence of what you’re trying to do is hook into the after_switch_theme hook and see if the $old_name is DahTheme. If it is, that means that the current theme isn’t DahTheme, so you want to deactivate the plugin. function wpse_after_switch_theme( $old_name, $old_theme ) … Read more

How to remove howdy dropdown menu content

You can use wordpress nodes to customize profile menu. Add this in functions.php add_action( ‘admin_bar_menu’, ‘remove_my_account’, 999 ); function remove_my_account( $wp_admin_bar ) { $wp_admin_bar->remove_node( ‘my-account’ ); } add_action( ‘admin_bar_menu’, ‘add_logout’, 999 ); function add_logout( $wp_admin_bar ) { $args = array( ‘id’ => ‘logout’, // id of the existing child node (New > Post) ‘title’ => … Read more

Child theme not using parent theme css/styles/formatting?

The theme you’re trying to use as a parent, Grow Minimal, is a child theme of the Grow theme. It’s not possible to create a child theme of another child theme without writing custom code workarounds. In your code, these two lines just do the same thing twice: wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ ); wp_enqueue_style(‘thinkup-style’, … Read more

Gutenberg – editor-font-sizes in functions not working

I believe to get this working I wasn’t calling this at the correct time, and I wrapped it in a function after_setup_theme, like so: add_action( ‘after_setup_theme’, ‘ttp_custom_font_sizes’ ); function ttp_custom_font_sizes() { // removes custom font sizes add_theme_support(‘disable-custom-font-sizes’); // add my own custom sizes add_theme_support( ‘editor-font-sizes’, array( array( ‘name’ => __( ‘Small’), ‘size’ => 12, ‘slug’ … Read more