WordPress.org

Ready to get started?Download WordPress

Forums

League Standings
[resolved] shortcode code shows (11 posts)

  1. vinchenze
    Member
    Posted 10 months ago #

    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/

  2. Mark O'Donnell
    Member
    Plugin Author

    Posted 10 months ago #

    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

  3. vinchenze
    Member
    Posted 10 months ago #

    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-

  4. Mark O'Donnell
    Member
    Plugin Author

    Posted 10 months ago #

    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.

  5. vinchenze
    Member
    Posted 10 months ago #

    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-

  6. Mark O'Donnell
    Member
    Plugin Author

    Posted 10 months ago #

    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

  7. vinchenze
    Member
    Posted 10 months ago #

    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-

  8. vinchenze
    Member
    Posted 10 months ago #

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

  9. Mark O'Donnell
    Member
    Plugin Author

    Posted 10 months ago #

    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

  10. Pinoy Basketball
    Member
    Posted 4 months ago #

    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

  11. Mark O'Donnell
    Member
    Plugin Author

    Posted 4 months ago #

    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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags