How do i get custom fontSizes and theme fontSizes?

Use useSettings() since useSetting() is deprecated. Then, you can specify a further path with custom or theme to state what data you’d like to get: // User-created presets. useSettings(‘typography.fontSizes.custom’); // Theme-defined presets. useSettings(‘typography.fontSizes.theme’); See this WordPress Playground for a working example.

Newbie question – which css file to edit

You generally shouldn’t edit your theme’s CSS files if the theme isn’t one you authored yourself. The reason is that these changes would be lost if you ever updated the theme. The two recommended ways of adding CSS of your own are: Go to Appearance > Customize > Additional CSS and add your CSS here. … Read more

This plugin helps create custom buddypress group tabs but it is producing a 404 error, how can it be edited, is it the screen_function?The code is i

you can use the code below, I edited it to work <?php /* Plugin Name: Custom BuddyPress Group Tabs Description: Adds custom tabs to BuddyPress groups Version: 1.0 Author: Bing */ // create the custom database table upon plugin activation function asdf_group_tabs_install() { global $wpdb; $table_name = $wpdb->prefix . ‘custom_group_tabs’; $charset_collate = $wpdb->get_charset_collate(); $sql = … Read more

Customizing Additional CSS editor

This is configurable using the plugin Child Theme Configurator. Here’s a screen shot. The option Separate stylesheet was selected originally. Changing it to Primary Stylesheet did the trick: Changes in Additional CSS are loaded first, and then changes in style.css in the child theme are loaded. No conflicts so far. With the Separate stylesheet setting, … Read more

How do I get the URL section to show use a different domain in the WordPress Admin?

You can use the post_link filter to do this. Example: function modify_post_link( $url, $post, $leavename=false ) { if ( $post->post_type == ‘post’ ) { $url = str_replace(home_url(), ‘https://preview.domain.com’, $url); } return $url; } add_filter( ‘post_link’, ‘modify_post_link’, 10, 3 ); In fact, with this you don’t even need your previous filter for get_sample_permalink.

How to edit the new user email notification template

This is done with the register_new_user filter: // Replace the default new user notification remove_action(‘register_new_user’, ‘wp_send_new_user_notifications’); add_action(‘register_new_user’, ‘my_new_user_email’); You have to remove the default action and register the new function: Create a new function that builds and sends the message. function my_new_user_email($user_id, $deprecated = null, $notify = ‘user’) { // create the message $message = … Read more