Title: CSS not loading for queries
Last modified: August 22, 2016

---

# CSS not loading for queries

 *  Resolved [Daniel](https://wordpress.org/support/users/dmzayasplus/)
 * (@dmzayasplus)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/css-not-loading-for-queries/)
 * Hello!
 * First of all, thank you for this great and useful plugin. I wanted to point your
   attention to a trouble spot I came across in theme development.
 * I have a custom homepage with multiple queries for various custom post types.
   Here’s my code snippet:
 *     ```
       <?php
           			$args = array(
               			'posts_per_page' => 1,
               			'post_type' => 'review',
               			'order_by' => 'post_date'
           			);
           			$latest_review = get_posts( $args );
   
           		foreach ( $latest_review as $post ) : setup_postdata( $post ); ?>
       ```
   
 * I also tried a more generic query to test it:
 *     ```
       <?php query_posts('cat=144&showposts=1'); ?>
       <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
       ```
   
 * Within these queries the plugin pulls the data for each post, but the data shows
   up in plaintext instead of utilizing the CSS. I even inspected the elements themselves
   and the CSS simply isn’t loading at all. The queries work on the posts themselves
   as intended, so I don’t think it’s a theme issue on my end, unless I’m doing 
   something terribly wrong on the home.php itself.
 * I’ve taken the plugin off the homepage for now but I’d really like my readers
   to be able to share from the homepage if possible. Thanks again for the plugin
   and I appreciate any guidance you or the community can offer.
 * [https://wordpress.org/plugins/mashsharer/](https://wordpress.org/plugins/mashsharer/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * (@renehermi)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/css-not-loading-for-queries/#post-5793204)
 * Hi,
 * if the css file is not loaded you have to make sure mashshare is enabled on your
   frontpage. You can do this in mashshare settings->visual->Location & Position
 * This is important to not load mashshare scripts and styles on all pages where
   it is not needed.
 * Please let me know if that helps.
 *  Thread Starter [Daniel](https://wordpress.org/support/users/dmzayasplus/)
 * (@dmzayasplus)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/css-not-loading-for-queries/#post-5793248)
 * Ah. I found it in the settings. It’s always the easiest answers you don’t imagine.
   haha
 * I have one more related question. I’d like to use a custom URL to show the Mashshare
   buttons. The reason being I promote Kickstarters, and until now I’ve relied on
   manual loading of each social media button. That doesn’t look very good and I
   would prefer to input a URL into the theme as such:
 * `<?php do_action("mashshare", url="https://kickstarter.com/customurl"); ?>`
 * Is something like this already possible or perhaps in the works?
 *  [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * (@renehermi)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/css-not-loading-for-queries/#post-5793286)
 * not yet, but i put it onto our todo list.
    I ll let you know when its done.
 *  [WordMonkey25](https://wordpress.org/support/users/wordmonkey25/)
 * (@wordmonkey25)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/css-not-loading-for-queries/#post-5793322)
 * Similar question,
 * I’m showing mashare manually in my template. Works fine on posts. However, similar
   to the above it is not loading any of the css on the homepage. I’ve checked the
   homepage box to show but it has no affect.
 *  [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * (@renehermi)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/css-not-loading-for-queries/#post-5793324)
 * Are you using do_shortcode(‘[mashshare]’);?
 * Possible to show me your website and to send me credentials for it?
 * support [at] mashshare.net
 *  [WordMonkey25](https://wordpress.org/support/users/wordmonkey25/)
 * (@wordmonkey25)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/css-not-loading-for-queries/#post-5793334)
 * Not using the shortcode. I’m using: <?php do_action(“mashshare”); ?> directly
   in the page sidebar.php template
 * For your reference here is the homepage: [http://bit.ly/1BmeLSu](http://bit.ly/1BmeLSu)
 * I will forward login credentials to you now as well. Thanks for the support.
 *  [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * (@renehermi)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/css-not-loading-for-queries/#post-5793335)
 * Please try to use do_shortcode(‘[mashshare]’); This results the same like do_action
   but it works internal differently and could be the reason why the css is not 
   loaded.
 *  [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * (@renehermi)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/css-not-loading-for-queries/#post-5793358)
 * I forgot: Please also activate mashshare on category pages. This is important
   when your frontpage is showing multiple blog posts.
 * This should solve it. If not, please let me know.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘CSS not loading for queries’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/mashsharer_33bbee.svg)
 * [MashShare - Social Media Share Buttons, Social Share Icons](https://wordpress.org/plugins/mashsharer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mashsharer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mashsharer/)
 * [Active Topics](https://wordpress.org/support/plugin/mashsharer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mashsharer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mashsharer/reviews/)

## Tags

 * [mashshare](https://wordpress.org/support/topic-tag/mashshare/)

 * 8 replies
 * 3 participants
 * Last reply from: [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/css-not-loading-for-queries/#post-5793358)
 * Status: resolved