Subject: {readmore_link} style

Posted on: 10/05/04 10:04pm
By: oculos

Hi there folks!

I forgot where I can do this - I need to change the style of the more link, and the "(xxx words)" text. Where can I do that? I mean, can I add a style to this? Where can we change styles from some variables?

Yours,

oculos

style

Posted on: 10/05/04 10:15pm
By: samstone

Look in style.css in your layout folder.

style

Posted on: 11/05/04 06:56am
By: oculos

Well, I may be wrong, but as far as I can tell, at this particular tag has no style pre-defined - that is, it follows the general table style.

style

Posted on: 11/05/04 09:33am
By: geKow

You could open your storytext.thtml and topstorytext.thtml and wrap a style around the {readmore_link}.

geKow

style

Posted on: 11/05/04 09:44am
By: oculos

good tip! I thought about it (and i bet it will work), but I was thinking about other tags that has styles embedded on them - is that possible to change them?

style

Posted on: 11/05/04 09:52am
By: geKow

I don't understand what you mean Do you have an example?

geKow

style

Posted on: 11/05/04 10:01am
By: oculos

Sure!

See, the tag {contributedby_user}, for example: it's not wrapped in any style, but it does contain a style preprogrammed, saved into the variable.

style

Posted on: 11/05/04 10:32am
By: geKow

ah...
well you need to play detective, a bit
(at least this is what I would do)

looking at the storytext.thtml again it shows a line like this:
{lang_contributed_by} {start_contributedby_anchortag}{contributedby_user}{end_contributedby_anchortag}



'start_contributedby_anchortag' looks promising, so I do a fulltext searc on it through my geeklog directory, what normally leads to a line in lib-common.php

In this case it leads me to this:

        $article->set_var( 'start_contributedby_anchortag',
                    '<a class="storybyline" href="' . $_CONF['site_url']
                    . '/users.php?mode=profile&uid=' . $A['uid'] . '">' );


so here we have a style we can change in the css file.

I'm sure that ain't the most professional way, but so far it worked for me

geKow

style

Posted on: 11/05/04 11:27am
By: oculos

It surely helps!!! Thanks!

style

Posted on: 11/05/04 12:36pm
By: Turias

While geKow's method is certainly helpful (I have used it many times), another method is to view the source of the page you want to change. Look for the text whose style you want to edit and see if it already has a class or id declaration.

style

Posted on: 11/05/04 12:49pm
By: geKow

yes... that to be honest... this is normaly my first step.... I just forget

Sorry

geKow

style

Posted on: 11/05/04 01:01pm
By: Turias

Don't be sorry. Doing a full-text search through the Geeklog core files is one of the best ways to find something. I do it all the time, and wish more people would do it more often.

style

Posted on: 11/05/04 01:19pm
By: oculos

That was also my step. However, that might be situations where you want to define a different style for a particular element, so this solutiong was just great.

style

Posted on: 11/05/04 02:28pm
By: Turias

[QUOTE BY= oculos] That was also my step. However, that might be situations where you want to define a different style for a particular element, so this solutiong was just great.[/QUOTE]

Just to make sure we're on the same page, if you want to define a new css class/style, best to do it in the theme file. Stay away from the core files as much as possible.

style

Posted on: 11/05/04 02:34pm
By: oculos

sure, sure, but the problem is that some themes uses the same style for many different variables, which might require some tweaking as the ones commented here.

Geeklog - Forum
https://www.geeklog.net/forum/viewtopic.php?showtopic=34658