Featured Images are not able to be set

You added your own answer in the comments section: There is only one total php warning/error: wp-admin/admin-header.php:9 – Cannot modify header information – headers already sent by (output started at /home/content/p3pnexwpnas13_data03/47/3056147/html/wp-includ‌​es/functions.php:413‌​8) include(‘wp-admin/edit-form-advanced.php’), require_once(‘wp-admin/admin-header.php’), header… The other half of the errors (it’s two different problems you are facing) can also be found in your comments 1) … Read more

Access theme options in templates

The bt_theme_opts_page() function handles your theme’s options, and in that function there is this line: $theme_opts = get_option(‘bt_opts’); So your theme’s options are being stored in bt_opts. To retrieve it, use the same code in your page.php file. So you would need: $theme_opts = get_option(‘bt_opts’); echo $theme_opts[‘content_width’].’ sidebar will be ‘.(12 – $theme_opts[‘content_width’]);

jQuery not available to other scripts

You’ve got two copies of some inline script var $mcj = jQuery.noConflict(true); inside a commented section ‘mc_embed_signup’. The ‘true’ here is removeAll: removeAll Type: Boolean A Boolean indicating whether to remove all jQuery variables from the global scope (including jQuery itself). You should track down this script and try and understand what it’s trying to … Read more

Responsive embed for the video shortcode

You could create a new callback for the embed_oembed_html filter and target the third input argument, the oembed $url. Then you could e.g. create boolean helper functions like (untested): function is_oembed_from_video_specific_hosts_wpse274552( $url ) { return in_array( parse_url( $url, PHP_URL_HOST ), [ ‘youtube.com’, ‘youtu.be’, ‘vimeo.com’, // … etc ], true ); } or a more detailed … Read more

My Admin bar covers my sticky navbar [closed]

You can try this code with add in functions.php file of your current’s theme: add_action(‘wp_head’, ‘my_wp_head’); function my_wp_head(){ echo ‘<style>’ .PHP_EOL .’body{ padding-top: 70px !important; }’ .PHP_EOL .’body.body-logged-in .navbar-fixed-top{ top: 46px !important; }’ .PHP_EOL .’body.logged-in .navbar-fixed-top{ top: 46px !important; }’ .PHP_EOL .’@media only screen and (min-width: 783px) {‘ .PHP_EOL .’body{ padding-top: 70px !important; }’ .PHP_EOL … Read more

One-to-many post relationships that are displayed by category (using posts-to-posts plugin)

I’m not that familiar with the posts-to-posts Plugin, but your main problem may be that the category page doesn’t know which building you chose in the step before if you don’t transmit it in a parameter or save it in a session or cookie. Maybe it would be better to output the connected items on … Read more

Where to edit the template that is generating the code for dynamic_sidebar left-sidebar in the Understrap theme? [closed]

Dynamic_sidebar pulls whatever widgets are assigned to that sidebar. If you want to add a class for the whole sidebar, surround the call in a div that you can then assign classes. <?php if ( is_active_sidebar( ‘left-sidebar’ ) ) : ?> <div class=”sideclass”> <?php dynamic_sidebar( ‘left-sidebar’ ); ?> </div> <?php endif; ?>