WordPress.org

Support

Support » Plugins and Hacks » [Resolved] shortcode code shows

[Resolved] shortcode code shows

  • HI Mark,

    I have the shortcode [mstw_ls_table league_id=slug] but it won’t activate in the sidebar. All I see is the shortcode. When I copy/paste the shortcode in a post, it works fine. Ideas? It worked on a different site but I cannot figure out why not here.

    Thanks for the great plugins.

    V-

    http://wordpress.org/plugins/league-standings/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Mark O'Donnell

    @markodonnell

    Hi V-
    Are you adding the shortcode to a text widget? Do you simply see the shortcode text ([mstw_ls_table league_id=slug]) in the sidebar? If so, you need to add the following to lines to your theme or child theme functions.php

    add_filter( ‘widget_text’, ‘shortcode_unautop’);
    add_filter( ‘widget_text’, ‘do_shortcode’);

    Regards,
    -Mark

    You’re Amazing. Added the code and it works. If you don’t mind a follow up … how do I make it span the width of the sidebar?
    Thanks again!
    V-

    Plugin Author Mark O'Donnell

    @markodonnell

    Thanks V.

    I believe the width of the table is set to 100%, so it’s limited by the width of the containing element, not by the plugin styles. If you send me a link to the page, I’ll inspect it and can probably tell you what to do.
    [ Signature moderated. ]
    Need help fast? Want to motivate me? Buy me some coffee.

    Thanks Mark,

    Based on a previous post regarding a similar issue, I edited the css to add the width here and it now works great.

    ‘.mstw-ls-table {
    border-collapse: collapse!important;
    border-spacing: 0px;
    width: 100%;
    }’

    However, I am wondering if there is a way to fix the player bio page so it doesn’t break up so bad on a mobile device. Seems everything else is just perfect now. (lincolntribe.com)

    And thanks again for such great plugins! They are perfect for our site as we don’t deal in hardcore stats.

    V-

    Plugin Author Mark O'Donnell

    @markodonnell

    Hi Vince-
    First, thanks for the coffee!! I appreciate it.

    That’s right, I don’t set a width so you need to set it to 100% to fill the container. Good job.

    I am not sure about the player profile on a small screen. Looks like your theme handles things pretty well. I may hardwire some sizes into that page, which is bad for resizing (or adaption, as they like to call it.) I am about turn my attention back to the Team Rosters plugin, so I’ll take a look.

    -Mark

    I’m not a programmer so I can’t really figure out how to do it. But in looking at the roster page and seeing how the tables act responsively (which is very well as far as I can see)…I was wondering if making the bio header (pic, name %#) somewhat similar, then maybe the # and name (and other details) could just fall below the pic thus not allowing text to wander off it’s area. (I reference the Coaching Staffs plugin) Coaching staff bio page looks like the photo stays up top. The name, staff position, experience and alma mater all fall below the pic when displayed on a mobile in portrait view and fits perfectly in landscape view. Looks good.

    V-

    sorry Mark, seems I went off topic with the team roster plugin question

    Plugin Author Mark O'Donnell

    @markodonnell

    That’s alright. You are on the right track. If you theme is responsive, you should be close. I just have to take a look at the single player profile page and see if I can adjust the code and the css a bit. I suspect I have a couple of things hardwired in there like widths in px instead of %, fonts (etc) in px but not also rem, may an absolute position. I just have to dig back in. It’s actually up next so stay tuned.
    -Mark

    Hi,

    where can I find the shortcode. i tried to make a league and added teams but I cant find the short code so that i can put it in the page.. I tried to view the league but it’s error. I found Nothing. How can I use this plugin in for my team standing. I read all the documentations and i didn’t get it. Thanks.

    Yours,

    Pinoy Basketball

    Plugin Author Mark O'Donnell

    @markodonnell

    Hi Pinoy Basketball,
    Could I ask you to open an new thread for this question? Added on to closed threads confuses me and doesn’t benefit anyone trying to find answers.
    Thank you.
    -Mark

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Resolved] shortcode code shows’ is closed to new replies.