Categories Plug in.

Creating and modifying plugins.
Post Reply
rj
Regular
Posts: 477
Joined: Sun Sep 10, 2006 2:53 pm

Categories Plug in.

Post by rj »

In the categories plugin, the GO box for the category picker is way too long.
I don't see this plugin in the plugin area so I dont know where I would change the width of the GO box at?

RJ
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Categories Plug in.

Post by garvinhicking »

Hi!

The length of it depends on your CSS for the 'input' type field element, which you can adjust using the 'width' CSS modifier within your style.css file, like:

Code: Select all

.serendipity_categories_plugin input {
width: 5px;
}
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
rj
Regular
Posts: 477
Joined: Sun Sep 10, 2006 2:53 pm

Post by rj »

My problem seems to be that the Category plugin, though presented in ADMIN and on the Blog, is no where to be found on the server or in the plugin directory, or in CSS. I think it was added with the original install and is some sort of hybrid confuse ME! :)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

You add the CSS into your main style.css file of your template, no need to edit/find any plugin related files!

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
rj
Regular
Posts: 477
Joined: Sun Sep 10, 2006 2:53 pm

Post by rj »

I still do not understand.
I put that in in the css file and nothing happens.
I keep thinking it is because that plugin does not exist in the plugin directory.
But what do I know! :)

.serendipity_categories_plugin input {
width: 100px;
}

There is no existing .serendipity_categories_plugin line in the CSS file. Does it matter where I put it. I put in the rest of the plugin area at the bottom of the CSS file.

Default for that GO! box is about 150px and my sidebar is 125px, thats the problem. How wide does a GO! have to be anyway? :)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

It simple might be because you have other CSS rules that override the thing you enter. One thing is to add this as the last thing to style.css, not at the top.

A second thing would be to use this:

Code: Select all

.serendipity_categories_plugin input {
width: 100px !important;
} 
And a last thing is to use the proper prefixing. Search your .css file for "input" and see which rules it precedesses. CSS is "Cascading", so a clearer indiciation of a rule always takes precedence for an unclearer indication. The more complete you add the "path" of a CSS element to your CSS file, the higher precedence it has and cannot be overriden by other statements.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
rj
Regular
Posts: 477
Joined: Sun Sep 10, 2006 2:53 pm

Post by rj »

I tried it up top and important down bottom and it just doesnt take.
http://rackjite.com
if you go there you can see GO! so obviously sticking out too far! :)

BTW, traffic is doubling every week.
Broke 500 a day yesterday and havent even entered the blogosphere yet.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

You can find the solution if you read my full previous answer, the instructions are there. :-)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
rj
Regular
Posts: 477
Joined: Sun Sep 10, 2006 2:53 pm

Post by rj »

hehehe.... GOT IT! Thanx...

What was screwing me up was not seeing that plugin in the plugins.
I was dwelling on something that did not matter! :)

RJ
Post Reply