You can change the column widths if necessary. You will see them defined in that template in the spColumnStart() routines. But tread carefully. i do not have any idea what it is you are adding so I can’t comment on it really. Can it not be made smaller with the right CSS styling?
Support Forum
Ideally I would love to make it smaller. Here’s what the plugin is giving me:
Available Parameters
| Parameter | Description |
|---|---|
| user_id | The ID of the user to get the rank for. If blank it defaults to current logged in user. |
| rank_image | Whether to show the rank image, if one is available. “True” to show or “False” to hide. If blank it defaults to true. |
| show_title | Whether to display the title: “My Rank”. Example: “True” to show or “False” to hide. If blank it defaults to true. |
| title_class | This class will be added to the title and will allow the use of custom CSS. |
Examples
[wpa_myranks user_id="1" show_title="false" rank_image="true"]
[wpa_myranks user_id="2" show_title="true" rank_image="false" title_class="custom_title_class"]
Any idea how to make it smaller?
Here is what it looks like. As you can see, I either need to shrink it somehow or widen the column:
If you are familiar with inspecting elements in your browser, you should be able to figure out what needs adjusting (normally right click > inspect element)
As Yellow Swordfish says, you can widen the column, but that would need to be almost doubled to accommodate, which would take up a lot of room!.. try inspecting and shout if you need further help
Gosh … Ugly.
You should be able to style it using CSS but you will need to know the classes being applied so that it can be done. Is there no documentation on the classes?
Sorry – we all posted there!
Looks like on the parameters you can pass a class for this. So make up a class name – send it to the function call using the parameter and then try styling that in your WP styles.css file.
I can’t find any documentation on the classes but I’ll see if I can get the info from the plugin author.
Yellow Swordfish said
Sorry – we all posted there!Looks like on the parameters you can pass a class for this. So make up a class name – send it to the function call using the parameter and then try styling that in your WP styles.css file.
Shoot, I’m sorry but that is way beyond my capacity. Any way you could direct me how to do that in fairly simple terms?
look back at the arguments to the shortcode.. andy was suggesting you add the title_class argument with a name you make up, myrank… then you could style this with css…
but not sure that will do it as we dont know if the entire size is encapsulated in that class or not… inspecting the css would tell you the class needing adjustment… we could do it, but dont have a link to inspect it…
Unfortunately, some of this stuff is beyond my capacity. @yellow-swordfish & @mr-papa do either of you ever do any freelance work? If so would you consider helping me with this? I can send you all the admin and ftp login details privately.
I have this shortcode working but I’m not sure if I understand CSS enough to resize it:
echo do_shortcode(“[wpa_myranks user_id=$spThisPostUser->ID show_title=false]”);
Thanks.
As Steve said above – give us a link to a page with this on and we should be able to advise.
Here is a link to the forum itself: http://golficity.com/clubhouse/
I didn’t leave the widget in there because this is a live forum and it looks terrible until it is resized.
Sorry – we were not clear. It IS the display if the achievements shortcode that we need to look at.
You need to add the class (as shown in the documentation you posted here) _ somnething like:
title_class="custom_title_class" and make it visible. Then we can inspect it and tell you how to fix the CSS
Ok, I’ve added it and made it visible. The problem is that you can’t see it because most of the forum and this particular plugin is hidden behind the paywall. I will send you login credentials via PM.
