Theme Customizer – Choose where widget area appears, to let users organise widgets

You can move around sections in the customizer simply by accessing the datastructure and assign a different value to the panel. So supposing that your widget area, created in the usual way, is called wpse210938_area and you want to move it to the panel wpse210938_panel, you do this: add_action( ‘customize_register’, ‘wpse210938_move_widget_area’ ); function wpse210938_move_widget_area () … Read more

Cannot get full thumbnail size using the_post_thumbnail

Try to add custom thumbnail size with unlimited(very big) hegiht and width in functions.php with following code: add_theme_support( ‘post-thumbnails’ ); add_image_size( ‘custom’, 9999, 9999 ); It will not crop any images. So you can use it as the_post_thumbnail( ‘custom’ ); This method looks rough but you can use if other ways don’t work. And if … Read more

Integrating Orbit slider into wordpress through custom post type

I have figured it out I started from scratch and created a custom loop with all the updated classes for the foundation orbit slider. If anyone would like the code please find it below: <?php $loop = new WP_Query( array( ‘post_type’ => ‘slides’, ‘posts_per_page’ => 999 ) ); ?> <div class=”orbit” role=”region” aria-label=”Favorite Space Pictures” … Read more

Cannot update WordPress General Settings Site Title and Tagline

Can you check your wp-config.php and double check that you are using the correct database, as if you have changed the values within the wp_options table then they should definitely be reflected in the settings in the back-end of WordPress, whereas, updating from WordPress might not have been saving etc. Sounds like a strange issue … Read more

How to configure wordpress to work with Vuejs with SSR and without hashbang

I think you should try Nuxt.js framework with Vue.js and WordPress as a server trough WP API. It works smoothly and have SSR solution in the box by default. In other way you need to configure your server to work properly with history mode. Take a look at configuration examples: https://router.vuejs.org/guide/essentials/history-mode.html And to official vue.js … Read more

How to change the customizer´s sidebar width?

Enqueue a style sheet to your admin or dashboard with admin_enqueue_scripts hook like below- add_action( ‘admin_enqueue_scripts’, ‘the_dramatist_admin_styles’ ); function the_dramatist_admin_styles() { wp_enqueue_style( ‘admin-css-override’, get_template_directory_uri() . ‘/your-admin-css-file.css’, false ); } And put your admin css code there. As your code above the inside of your-admin-css-file.css will look kinda like- .wp-full-overlay.expanded { margin-left: 500px !important; } #customize-controls.wp-full-overlay-sidebar … Read more

Adding LazyLoad and InfiniteScroll to WordPress Theme

You need to add the callback function in the argument list as part of the function call, rather than as part of the argument object: jQuery( infinite_scroll.contentSelector ).infinitescroll( infinite_scroll, function(){ addLazyLoad() } ); You can remove the function(){ addLazyLoad()} that’s part of the infinite_scroll object (after “contentSelector”:”#content #main”); it’s not going to do anything.