WooThemes

The WooThemes Blog

All the latest news and announcements, straight from the WooThemes HQ!

Subscribe

WooFramework gets Shortcodes

76

by Adii Rockstar in Development

We’ve seen many comments about WP shortcodes on Twitter, and on a few blogs lately, so we figured whilst everyone was talking about it, we’ll just get going on implementing it.

The latest update to the WooFramework (which now takes it to version 2.9) features the addition of shortcodes for a variety of buttons, info boxes, related posts, as well as some social bookmark buttons. The idea behind the shortcodes is that it makes it easier for you as publisher / website admin to re-use certain popular elements within your blog post, without having to worry about re-doing large sections of code (that’d just be mundane).

An overview of the elements you can create using our new short codes

You can preview the shortcodes in action on the Canvas demo. For an overview of all shortcodes, be sure to check out the WooCodex (This box was made using the ‘box’ shortcode!)

So our initial batch of shortcodes are aimed at doing just that, whilst it serves as a quick “beta” for us to get feedback on how you are using them, and how we could build more. We’ve got a few more plans, but we’re happy for you to shoot with some suggestions.

The styling of these elements are currently contained within the WooFramework, which means that it will look just like these examples above when you are using it on your side. You will however be able to add some custom CSS to modify the styling of these to suite the rest of your WooThemes modification and custom styling.

Have fun implementing, or modifying them! :)

NOTE: You would need to update the WooFramework in your theme (do so from your WP backend) to the latest version before you can use these shortcodes. Members can get more information about the shortcodes in the WooCodex.


Tags: ,

76 Responses to “WooFramework gets Shortcodes”

  1. Alex White
    12 August 2010 at 11:58 am #

    This is a great feature and catches up to many of the features available on other premium themes. I’m really glad that I’ll be able to use them on my Canvas blog.

  2. Christopher Kovalenko
    12 August 2010 at 1:53 pm #

    Hey,

    Im looking in my Spectrum options for a Framework update but I cant see any update button. It is currently showing at Framework 2.7.10

    Do I have to check the box Framework Core Update (Only for framework V.2.7.0 +)

    Cheers
    Chris

    • Magnus
      12 August 2010 at 3:49 pm #

      Hi

      Yes older versions of the framework didn’t have this enabled by default. So to those that don’t see “Update Framework”, go to “Framework Settings” and enable the “Framework Core Update” option.

      • Christopher Kovalenko
        12 August 2010 at 3:56 pm #

        Cheers :) Is there anyway of enabling the shortcode in a template file?

  3. Best WordPress Themes
    12 August 2010 at 2:54 pm #

    I kid you not. I was thinking about this yesterday. So now you guys are into mind reading? Your ninja skillz are uncanny.

  4. Scott
    12 August 2010 at 3:24 pm #

    Shortcodes are nice but that means you have to put them in for every post which is a pain and time consuming. A better option is to create some php code to go along with the shortcodes for people who want to build these features into their customized themes. I know i’d like that.

  5. Robert Patterson
    12 August 2010 at 4:01 pm #

    shortcodes are a welcome addition…how about the addition of tabs, toggles, content sliders, and columns……?

    good work.

    • Magnus
      12 August 2010 at 7:02 pm #

      All those are possible future shortcodes :)

    • Shnooka
      12 August 2010 at 8:25 pm #

      I agree, these shortcodes are practically standard on ThemeForest themes.

      • Magnus
        12 August 2010 at 8:38 pm #

        We hear ya, the difference is that we have 70 themes that these shortcodes need to work across and look good on… one step at a time :)

  6. Achim
    12 August 2010 at 4:16 pm #

    Simply Woo !!

  7. Mark Casey
    12 August 2010 at 4:27 pm #

    Sorry if I’m being a bit thick here but I can’t get this working.

    I’ve just tried this on my site but the source code is, for example, This is a note box

    The css in the Canvas stylesheet is p.note

    Shouldn’t that be p.woo-note ?

    • Mark Casey
      12 August 2010 at 4:29 pm #

      Ah, my comment above doesn’t read write because it’s parsed the HTML.

      Hopefully it still makes sense though. Are the css classes right?

    • Magnus
      12 August 2010 at 7:04 pm #

      The CSS for shortcodes is all in the framework, not in style.css

      Post in our forum and we’ll help you out there.

  8. John P.
    12 August 2010 at 7:44 pm #

    When shortcodes first rolled out, I dropped them immediately because they weren’t parsed out of feeds and made the feed look icky. Haven’t turned back to them since.

    I tried the ‘Related Posts’ short tag. It worked nicely except that class isn’t styled in the framework. I’m awful with CSS so that little project is on the back burner.

    • Magnus
      12 August 2010 at 8:20 pm #

      I left it unstyled so it would fit in with all of our themes… It should be easy to style so just let us know if you need any help in the forum :=)

      • John P.
        13 August 2010 at 3:49 am #

        It is easy to style if I wasn’t lazy with CSS. I liked the styled Related Posts ul in the Canvas demo before you removed the styling. I went to reverse engineer it but the demo didn’t actually style the “woo-sc-related-posts” class. Maybe you can do a couple of styled demos somewhere.

  9. carlos correza
    12 August 2010 at 10:41 pm #

    all i can say is wow. I am impressed.

  10. Scott Kivowtiz
    12 August 2010 at 11:06 pm #

    related posts with thumbnails would be amazing!!

    • Magnus
      12 August 2010 at 11:33 pm #

      I’ve added basic support now in 2.9.02 :)

      • Scott Kivowtiz
        13 August 2010 at 12:59 pm #

        So now it will use thumbnails?

      • Scott Kivowtiz
        13 August 2010 at 1:01 pm #

        I see, now it does. How do I enable images when using the PHP version of the shortcode?

      • Scott Kivowtiz
        13 August 2010 at 1:27 pm #

        Got the images enabled too! Only issue is the CSS now. getting them to be horizontal instead of vertical

        • Rick Trudel
          16 September 2010 at 10:16 am #

          How do you did? I am searching how to include thumbnails.

          Using:

          Not working

          • Magnus
            16 September 2010 at 11:36 am #

            We can help you in our support forum

  11. Matt Stigall
    13 August 2010 at 2:39 am #

    I am looking for the right word to describe this. Beautiful. Awesome. Amazing. Life-saving. Glorious.

    Yes. Glorious.

    This is just the Beta? Pssh…you always gotta give us a tease to make us expect more.

  12. Rick Adlam
    13 August 2010 at 11:25 am #

    Great work!
    I have been working on other projects and am yet to use canvas, but shortcodes for button and info boxes is exactly what I need to rework my mortgage site. Hopefully there will be a range of colors for the buttons.

    • Magnus
      13 August 2010 at 11:58 am #

      You set the color for the buttons yourself using the parameters :) Default is blue.

  13. Jim Blair
    13 August 2010 at 1:01 pm #

    This sounds really interesting guys. Thanks.

    How about extending the shortcodes to provide flexible columns within a page e.g. 1/3 column and 2/3 columns, 1/4 column and 3/4 columns, 3 * 1/3 columns or 4 * 1/4 page columns.

    This is a great feature that’s especially useful for Business sites and full width pages.

  14. Nick Soper
    13 August 2010 at 2:16 pm #

    Looks like the usual awesome stuff coming from the WooTeam

  15. gbot
    13 August 2010 at 11:28 pm #

    Awesome news – an essential feature of any premium theme.

    Can I vote for a tabbed panel and accordion panel shortcodes? Along with what you have already would make it a great little set of UI components!

  16. Nathan Doyle
    15 August 2010 at 6:31 am #

    I am using a child theme, not sure why but it seems that the shortcodes css file is being called from my child theme functions folder, which of course dosen’t exist.

    Am I supposed to have the functions folder in my child theme? Better yet is there a reason the css file isn’t being called from the parent theme?

    • Magnus
      15 August 2010 at 9:46 am #

      Hi

      No this is supposed to be called from the parent theme, so I have updated the framework now to fix this. Just update to newest framework.

      • Nate D
        15 August 2010 at 8:00 pm #

        Thanks Magnus – You Rock!

  17. GRL
    16 August 2010 at 5:21 pm #

    This rocks, especially for my courseware web site. Thanks!

  18. Jim Blair
    19 August 2010 at 6:49 pm #

    Hi,

    What about a shortcode for LinkedIn – the business users Facebook!

  19. Scott Fitzgerald
    20 August 2010 at 1:25 pm #

    I’d like the code to have the Twitter, Digg and Facebook appear all in a row, as you display them in your graphic showing the output of all the shortcodes, at the top of this page.

    • Magnus
      20 August 2010 at 1:28 pm #

      Hi Scott,

      This is possible :) Please post any support related question in the forum.

      • Scott Fitzgerald
        20 August 2010 at 2:52 pm #

        Fair enough. Solved it in the meantime.

        Instead, how about a suggestion – an info box type for blockquotes?

        • Magnus
          20 August 2010 at 4:52 pm #

          not sure what you mean… an info box and blockquotes together?

          Or do you mean a shortcode to show stylized blockquotes e.g. big quotation marks with some text?

  20. Magnus
    20 August 2010 at 2:25 pm #

    More shortcodes (Columns and HR/Divider) have been added!

    Check them out here: http://www.woothemes.com/shortcodes/

    • Jim Blair
      21 August 2010 at 8:26 pm #

      Just brilliant!

  21. budeco
    20 August 2010 at 11:52 pm #

    Woo great! One question, what is the best way to centre a button or put is right instead of left?

  22. Sudeep Shroff
    23 August 2010 at 7:54 am #

    Hey all,

    I am not able to figure out how to add short-codes. I use canvas theme for my site.

    Can you suggest any screen capture video that can explain this well.

    Thanks in advance.

    • Adii Rockstar
      23 August 2010 at 9:08 am #

      Have you already upgraded to the latest version of the WooFramework? And to get the shortcodes to work it’s as simple as copying some of those codes into your WP post (HTML view). :)

      • Sudeep Shroff
        23 August 2010 at 11:50 am #

        Adii’

        I have learned to do that. Thanks.

  23. Scott
    25 August 2010 at 4:37 pm #

    I’ve had another shortcode idea. How about one for Tags in a post? I’d love more control over where the Tags are placed. Possible? Does it sound like it might interest others?

  24. Josh
    25 August 2010 at 7:48 pm #

    Are shortcodes also available for “The Station”

  25. Corey
    26 August 2010 at 6:03 pm #

    Would it be possible to have a shortcode for the “Recommend” iteration of Facebook’s “Like” button. Recommend is a bit more neutral phrase that is especially useful for news and less-than-positive posts.

  26. Nathan Doyle
    1 September 2010 at 1:11 am #

    I think it would be nice to have custom featured boxes with various colors as well as various corner ribbons. Some icons similar to the icons in the buttons and info boxes. Maybe some lists with or without icons. Also some floating quotes and a shortcode to capitalize first letter of a paragraph.

  27. Leslie Nicole
    6 September 2010 at 3:00 pm #

    Very cool! I was just looking for ways to add plug-ins and now I probably won’t have to.

  28. Leslie Nicole
    6 September 2010 at 3:05 pm #

    I have to admit, I’m a little confused about upgrading from the wp back-end. I thought I would get a notice when the framework updated, but that doesn’t seen to have happened in my Fresh News theme. I must be unclear on the concept? (not sure if this is a support question or if it supports the thread…)

    • Leslie Nicole
      6 September 2010 at 3:14 pm #

      OK, this seems to be activated now, but there is a dire warning not to upgrade unless I have to. Is it safe to upgrade?

      • Magnus
        6 September 2010 at 4:03 pm #

        Yes it should be safe :)

  29. Brandie Kajino
    9 September 2010 at 3:13 am #

    How about a grey box without an icon? :)

    • Brandie Kajino
      13 September 2010 at 9:19 am #

      Ok, so I did find this after looking at the Codex (sorry about that). However, I’m using the “normal box” code, and I’m still getting the “i” info box.

      Am I doing something wrong?

      • Magnus
        13 September 2010 at 10:39 am #

        Hi

        I added a grey box without an icon in the latest version of the framework and updated the Codex.

        If you still can’t get it to work, please post in our support forum.

        • Brandie Kajino
          14 September 2010 at 2:32 am #

          It’s working! I updated the framework again. Thanks so much!

Trackbacks/Pingbacks