totally confused about editing wp theme….new guy to wp

Here there are 3 scenarios: 1- You want to customize your current theme. You can do this by heading to Appearance > Customize in the left sidebar. You can customize your theme there, based on the theme’s design. 2- You want to change the theme’s structure. If you are familiar with HTML, CSS and PHP, … Read more

I want to increas my site image [closed]

In the ‘additional CSS’ section of your theme customization area, try this CSS .rsrc-header-img {width:500px;} …changing the width value as needed. If your theme doesn’t have an ‘additional CSS’ setting, there are plugins that will add that to your theme’s customization page. Or, you could create a Child Theme, then put the above CSS in … Read more

Rest API does not work after changing WordPress Theme

I manage to solved it by adding this code (at the bottom) to the YOUR BLOG THEMES my path : wp-content/themes/MYWPTHEME/function.php function ws_register_images_field() { register_rest_field( ‘post’, ‘images’, array( ‘get_callback’ => ‘ws_get_images_urls’, ‘update_callback’ => null, ‘schema’ => null, ) ); } add_action( ‘rest_api_init’, ‘ws_register_images_field’ ); function ws_get_images_urls( $object, $field_name, $request ) { $medium = wp_get_attachment_image_src( get_post_thumbnail_id( … Read more

change template with button

Try using switch_theme(). <?php switch_theme( $stylesheet ) ?> I have personally never used it but it sounds like what you want. You just need to pass the stylesheet name you are using. Here is a very basic demo I put together. You would basically but the following code, where ever its needed in both themes. … Read more