Load Gallery Images with Title on Homepage BX Slider

I would recommend using this plugin instead: https://wordpress.org/plugins/cpt-bootstrap-carousel/ It works well with the built-in Twitter Boostrap 3 in Roots.oi theme (Responsive) and it comes along with a CPT named carousel. Looking in your code: The get_post_gallery_images() function only returns the url and it doesn’t contain any Gallery Image Title content.

Two exact templates, sidebar showing in one but not the other

Look at the config.php: function roots_display_sidebar() { $sidebar_config = new Roots_Sidebar( /** * Conditional tag checks (http://codex.wordpress.org/Conditional_Tags) * Any of these conditional tags that return true won’t show the sidebar */ array( ‘is_404’, ‘is_front_page’ ), /** * Page template checks (via is_page_template()) * Any of these page templates that return true won’t show the sidebar … Read more

Change the name of the root name of an already built WordPress theme

You should never use <link> tags for stylesheets. Always use the proper API functions: Better practice Example: function wpse57423_register_stylesheets() { wp_enqueue_style( “themes_main_stylesheet’ get_stylesheet_directory_uri().”/style.css” array() // Use this array if you’ve deps that need to load before your stylesheet filemtime( get_stylesheet_directory().”/style.css” ) ); } function wpse57423_enqueue_stylesheets() { wp_enqueue_style( ‘themes_main_stylesheet’ ); } // Add to public page … Read more

How to create a theme specific translation of buddypress? [closed]

First, actions added to plugins_loaded hook will not work from theme functions.php or any theme file because at that point it will be already fired (too late from theme files). What you can do is to hook your action into after_setup_theme and unload buddypress text domain first and then add your custom buddypress text domain … Read more

Why do the Roots theme CSS files not load (404)?

I took a risk and activated the theme to see what might happen. Roots needs to complete theme activation to add the rules into .htaccess. Until this happens none of the CSS / JS will load and the theme preview lacks stylesheets. It turns the stock .htaccess: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase … Read more

WordPress Ignoring My Custom Post Type Templates?

Got it. I had tried to use flush_rewrite_rules() on plugin activation/deactivation, as so: function creativeworks_activate() { // register taxonomies/post types here flush_rewrite_rules(); } function creativeworks_deactivate() { flush_rewrite_rules(); } register_activation_hook( __FILE__, ‘creativeworks_activate’ ); register_deactivation_hook( __FILE__, ‘creativeworks_deactivate’ ); …but that didn’t seem to do anything. However, when I changed the site-wide permalink options arbitrarily and saved them, … Read more