Title: Shortcodes styles
Last modified: May 14, 2020

---

# Shortcodes styles

 *  Resolved [FranMat10](https://wordpress.org/support/users/franmat10/)
 * (@franmat10)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/shortcodes-styles/)
 * Hi, I’d like to know if it’s possibile to style the popular post list via shortcode(
   cards, tiles etc)
 * Thanks in advance

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

 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/shortcodes-styles/#post-12834704)
 * Hi [@franmat10](https://wordpress.org/support/users/franmat10/),
 * No, currently there’s no way to assign a theme to the shortcode via parameters.
   That’s a widget-only feature for now.
 * However, there’s a workaround:
 * **1.** Go to **Plugins > Plugin Editor** and select **WordPress Popular Posts**
   from the dropdown.
 * **2.** Click on **assets > themes > [your-preferred-theme] > config.json** to
   open this config file.
 * You’ll notice that this config file uses the exact same parameters that are available
   to the shortcode. The parameters you’re interested in are _wpp\_start_, _wpp\
   _end_ and _post\_html_. Add those to your shortcode and set them up just the 
   same way as you see them on the json file. For example:
 * `[wpp wpp_start="<ul class=\"wpp-list wpp-cards\">" wpp_end="</ul>" post_html
   ="<li>{thumb_img} <div class=\"wpp-item-data\">{taxonomy} {title} <p class=\"
   wpp-excerpt\">{excerpt}</p></div></li>"]`
 * **3.** Finally, follow [these instructions](https://wordpress.org/support/topic/post-title-css-customization-not-working/page/2/#post-12807802).
 *  Thread Starter [FranMat10](https://wordpress.org/support/users/franmat10/)
 * (@franmat10)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/shortcodes-styles/#post-12837963)
 * It doesn’t work, perhaps I made some mistakes. I followed the instructions (thanks
   for the fast reply) but nothing happened.
 * Here’s the shortcode I used into a page, is it wrong?
 * [wpp wpp_start=”<ul class=\”wpp-list wpp-tiles\”>” wpp_end=”” post_html=”
    - {thumb}<div class=\”wpp-post-data\”>{taxonomy} {title}</div>
    - ” wpp thumbnail_width=50 thumbnail_height=50]
    - Thanks in advance
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/shortcodes-styles/#post-12839184)
 * Hard to say what’s going on without more details, [@franmat10](https://wordpress.org/support/users/franmat10/).
   For example:
    - I’d like to see where your popular posts list is so I can see the output, 
      and for that you’ll need to share your site’s URL.
    - Are you using the Classic editor or the Block editor (a.k.a. Gutenberg)?
    - Do you have a caching plugin installed?
    - Etc.
 *  Thread Starter [FranMat10](https://wordpress.org/support/users/franmat10/)
 * (@franmat10)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/shortcodes-styles/#post-12843475)
 * I tried another workaround, using amr shortcode to put it into a page. It works
   this way but mobile view is terrible.
 * My aim is using WPP styled list as my homepage. Don’t know if it’s possibile
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/shortcodes-styles/#post-12844177)
 * Well, it’s doable:
    - You could alter the main query of your home page so it lists popular posts(
      this would require some custom coding.)
    - You could replace your current homepage with a custom one and place the shortcode
      there (this would also require some level of custom coding).
    - Similarly, you could code a custom template that retrieves popular posts in
      some way (via shortcode, or using a custom widget, or via custom PHP coding,
      etc.)
 * But all of that is out of the scope of support I provide here. You’d need to 
   hire a developer if you’re not familiar with WordPress development in general.

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

The topic ‘Shortcodes styles’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-popular-posts/assets/icon-256x256.png?rev=1232659)
 * [WP Popular Posts](https://wordpress.org/plugins/wordpress-popular-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-popular-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-popular-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-popular-posts/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/shortcodes-styles/#post-12844177)
 * Status: resolved