Support Forum

Subcribe and Watch plugin left text align

CF Conrad_Farlow
Conrad_Farlow
Member

Yes it’s spTextLeft again.

How can I make the list generated by the subscribed and watching button left align? Can this be done either in the plugin or better still in the theme?

Conrad

8 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

Need to discuss with Steve. I am trying to see if we can change the current display.
He is working hard and late tonight so might not even get to the forum I am afraid.

YS Yellow Swordfish
Yellow Swordfish
Member

We are hoping that Steve is going to become more available after the end of this week. But I can give you some information.

By their very nature of being optional – possibly even user written (we hope one day!) – the styling for an SP plugin can not be added directly to the theme css file. So it has to be supplied with it’s own CSS file which is loaded up if the plugin is active and it has one.

You will find a plugin’s CSS file in its ‘resources’ folder.

As always, the problem with changing CSS in a plugin is that it will get overwritten in an update to that plugin. So, to get around this problem we encourage a user to create an alternate CSS file for each plugin in their theme style folder which has to have the same name as the original plugin css file. In other words a copy of the file that can be modified safely.

When loaded, SP will first look for the CSS file in the theme and if not there will then look in the plugin. Neat eh?

And of course we recommend the creation of a new theme if a user wants to make such changes which are then safe from updates.

So this is the case for both the Subscriptions and Watches plugins.

Now the reason I was hesitant in the first place is that these two plugins AND their CSS were written before the ListView was created and Steve and I are currently discussing whether we can change those two popups to use the ListView instead of doing their own thing. If this happens then they will automatically inherit the CSS defined for ListView and not have to define their own styling.

And that is just a question I wont be able to answer for a few days yet.

CF Conrad_Farlow
Conrad_Farlow
Member

That’s fine, I’ll fix it now. Also if you change methods it will be fine anyway. I’ll let you you know how it works out.

Conrad

CF Conrad_Farlow
Conrad_Farlow
Member

I will  do.

For now I have everything pretty much OK except that I cannot figure out how to increase the column width for spSubscribedTopics h2 so that all the text is on one line, there is plenty of room. I have tried all sorts in #spMainContainer#spSubscribedTopics h2 but to no avail. I could loose the words List of as an alternative if I could find where it was declared confused

MP Mr Papa
Mr Papa
Member

they can be changed to list view… we just have to modify list view stuff to accommodate them… as Andy says, ticket open…