Title: Use main shortcode like widget
Last modified: August 22, 2016

---

# Use main shortcode like widget

 *  Resolved [mherbert](https://wordpress.org/support/users/mherbert/)
 * (@mherbert)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/use-main-shortcode-like-widget/)
 * Hi,
 * Love the plugin, but wonder if you can help with something.
 * I guess the shortcode requires when a number of columns is selected or defaults.
   When testing responsiveness, smaller screen sizes maintain this number of columns,
   making them very narrow. Ideally it would good to have one column for small screen
   sizes and then increase them as the screen gets bigger.
 * The widget solves this problem by displaying the child pages as list items, so
   no number of columns is required which, in my opinion, makes responsiveness much
   better. The problem with using the widget on a page is the need to register more
   sidebars and that I can’t see where to add excerpts and thumbnails to the widget.
 * So… is it possible to change the shortcode template to not require columns, but
   put the child pages in a list?
 * Thanks.
 * [https://wordpress.org/plugins/cc-child-pages/](https://wordpress.org/plugins/cc-child-pages/)

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

 *  Plugin Author [caterhamcomputing](https://wordpress.org/support/users/caterhamcomputing/)
 * (@caterhamcomputing)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/use-main-shortcode-like-widget/#post-5553638)
 * The shortcode will produce the number of columns requested (it defaults to 3 
   of nothing is specified), but at smaller screen sizes will fall back to either
   2 or single column display when using the standard CSS.
 * If you are having problems with this functionality, it would useful to know in
   which browser (and which version of it) and the URL of the page on which you 
   are having problems so that I can try and work out what is happening.
 * You can also select how many columns you wish to use by specifying the `cols`
   parameter (values of 1 to 4 are accepted), or set the `list` parameter to “true”(
   see either the usage instructions at [https://wordpress.org/plugins/cc-child-pages/installation/](https://wordpress.org/plugins/cc-child-pages/installation/)
   or view the examples (with code) at [http://ccchildpages.ccplugins.co.uk/](http://ccchildpages.ccplugins.co.uk/)).
 * Thank you for trying out the plugin … I will be happy to look at your page and
   help if I am able.
 *  Thread Starter [mherbert](https://wordpress.org/support/users/mherbert/)
 * (@mherbert)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/use-main-shortcode-like-widget/#post-5553659)
 * Hi – unfortunately the site isn’t live (online) yet which I understand does not
   really help much! Sorry about that! (I understand if you can’t help if the site
   is not online).
 * I want two columns normally, but when the site is being viewed on mobile phone
   sizes I want only 1 column. I’m using Safari and resizing the browser with different
   user agents to test the responsiveness. It’s the fall back to one column at the
   small size that isn’t working for me, but I can see the media queries in the 
   CSS now so I’ll take a closer look at that.
 * I can get the solution I need using the list format, if only I could also get
   an excerpt using that! 😉
 * Thanks for looking.
 *  Plugin Author [caterhamcomputing](https://wordpress.org/support/users/caterhamcomputing/)
 * (@caterhamcomputing)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/use-main-shortcode-like-widget/#post-5553661)
 * Hmmm .. I’ve tested on Safari and the changing from 2 to 1 columns is working
   fine (but as I am running Windows the last available version of Safari was version
   5.1.7).
 * Is it an extension to Safari you are using to test the responsiveness? If you
   can let me know which extension you are using I could try using it myself … and
   also, which user-agents you are emulating when it doesn’t work.
 * If the page at [http://ccchildpages.ccplugins.co.uk/](http://ccchildpages.ccplugins.co.uk/)
   works as expected, it is possible that something else is conflicting with the
   plugin.
 * While I investigate; if you want a list with excerpts why not set `cols="1"` 
   instead of using `list="true"`?
 *  Plugin Author [caterhamcomputing](https://wordpress.org/support/users/caterhamcomputing/)
 * (@caterhamcomputing)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/use-main-shortcode-like-widget/#post-5553662)
 * I’ve just been testing on Firefox using the Web Developer toolbar, and if I resize
   the window to 320px wide I get 1 column as expected.
 * However when I use the “View Responsive Layouts” option, the 320px wide window
   shows 2 columns … although the media query should only display a single column
   at widths up to 320px.
 * Testing on my Android phone shows that I get 1 column as expected, as does testing
   on a Windows 8 phone. I don’t have an iPhone, so can’t comment on that.
 * I am tempted to conclude that it is the emulation of smaller browsers that is
   not working quite as expected rather than the plugin itself.
 *  Thread Starter [mherbert](https://wordpress.org/support/users/mherbert/)
 * (@mherbert)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/use-main-shortcode-like-widget/#post-5553729)
 * Hi – yes, sorry, I was obviously not entirely thinking straight last night and
   have adjusted the screen sizes on the media queries and solved the issue!
 * Thanks for your help and great plug-in.
 *  Plugin Author [caterhamcomputing](https://wordpress.org/support/users/caterhamcomputing/)
 * (@caterhamcomputing)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/use-main-shortcode-like-widget/#post-5553735)
 * Glad to hear that it is working OK for you … thank you for using the plugin.

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

The topic ‘Use main shortcode like widget’ is closed to new replies.

 * ![](https://ps.w.org/cc-child-pages/assets/icon-256x256.png?rev=3451096)
 * [CC Child Pages](https://wordpress.org/plugins/cc-child-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cc-child-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cc-child-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/cc-child-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cc-child-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cc-child-pages/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [caterhamcomputing](https://wordpress.org/support/users/caterhamcomputing/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/use-main-shortcode-like-widget/#post-5553735)
 * Status: resolved