TinyPortal

Development => Support => Topic started by: jernatety on March 21, 2019, 01:34:43 PM

Title: Front page - Read More - styling
Post by: jernatety on March 21, 2019, 01:34:43 PM
I notice on various sites many have styling where the read more text in the article looks more like a button with either a rectangle behind it or a capsule. Can I add CSS to do that without breaking tiny portal?
Title: Re: Front page - Read More - styling
Post by: @rjen on March 21, 2019, 01:58:22 PM
Quite sure that our Read more link is just text, with no attributes (like class) to target with css.

Can't be sure without a computer but can check later. It should be relatively simple to add one or more attributes though...
Title: Re: Front page - Read More - styling
Post by: jernatety on March 21, 2019, 02:24:18 PM
Quote from: @rjen on March 21, 2019, 01:58:22 PM
Quite sure that our Read more link is just text, with no attributes (like class) to target with css.

Can't be sure without a computer but can check later. It should be relatively simple to add one or more attributes though...

Ok, thank you for the response. I'm trying to make my site look more like a professional level organization similar to other sites formatting.
Title: Re: Front page - Read More - styling
Post by: @rjen on March 21, 2019, 04:41:55 PM
Just be careful: more graphics is not perse professional. Sometimes ' less is more'
Title: Re: Front page - Read More - styling
Post by: @rjen on March 21, 2019, 05:59:44 PM
Checked: it is easily possible. The read links do have a class: tp_readmore.

So adding a bit of css to your site is all you need...

Example:

.tp_readmore a
{
   background-color: #21759B;
   color: #fff;
   padding: 10px;
   text-decoration: none;
   border-radius: 6px;
   border: 1px solid #0f3647;
}

.tp_readmore a:hover {
  background-color: #ce0606;
}

results in attached...

Play around with colors, widths etc till you like it...
Title: Re: Front page - Read More - styling
Post by: jernatety on March 21, 2019, 07:31:01 PM
Sweet! Thank you very much. Looks great.