Welcome to Geeklog, Anonymous Sunday, September 01 2024 @ 12:34 am EDT
Geeklog Forums
{readmore_link} style
Status: offline
oculos
Forum User
Newbie
Registered: 04/10/04
Posts: 10
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
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
27
14
Quote
Status: offline
geKow
Forum User
Full Member
Registered: 01/12/03
Posts: 445
ah...
well you need to play detective, a bit![](http://www.geeklog.net/images/smiles/icon_smile.gif)
(at least this is what I would do)
looking at the storytext.thtml again it shows a line like this:
'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:
'<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
well you need to play detective, a bit
![](http://www.geeklog.net/images/smiles/icon_smile.gif)
(at least this is what I would do)
looking at the storytext.thtml again it shows a line like this:
Text Formatted Code
{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:
Text Formatted Code
$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
21
39
Quote
Status: offline
Turias
Forum User
Full Member
Registered: 10/20/03
Posts: 807
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.
19
19
Quote
Status: offline
Turias
Forum User
Full Member
Registered: 10/20/03
Posts: 807
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.
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.
![](http://www.geeklog.net/images/smiles/icon_smile.gif)
19
19
Quote
All times are EDT. The time is now 12:34 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content