• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Is it possible to add a CSS class to a Smarty tag???
PostPosted: Thu Aug 09, 2018 9:53 am 
Offline
New Member
New Member

Joined: Wed Aug 08, 2018 4:59 pm
Posts: 1
Hi all, I just starting to use CMSms few days ago. I have a previous experience in html/css/javascript.

I need to know if it is possible to add a simple css class to a smarty tag so the <a> tag has a CSS class when the browser renders it.

this is the Smarty tag that need the class
Code:
{$entry->morelink}


I have tried everything I have thought of but nothing seems to work.

the output must be something like
Code:
<a href="someurl" class="link">see more</a>


here is the style in .link which I need to add to the "see more" link somehow. Otherwise the link styling is not working.

Code:
  .main-banner figcaption .box .link {
        font-size: 20px;
        font-weight: 500;
        color: inherit;
        display: inline-block;
        vertical-align: top; }
        .main-banner figcaption .box .link:hover {
          text-decoration: underline; }
        @media (max-width: 767px) {
          .main-banner figcaption .box .link {
            font-size: 18px; } }


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Is it possible to add a CSS class to a Smarty tag???  Topic is solved
PostPosted: Thu Aug 09, 2018 10:57 am 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Apr 23, 2008 7:53 am
Posts: 7544
Location: The Netherlands
Hi,

Beside {$entry->morelink}, there is {$entry->moreurl}.

Code:
<a href="{$entry->moreurl}" class="link">see more</a>


Hope this helps.

Grtz. Rolf

_________________
Image

Did my post help you solving a problem at your (customers) website and it saved you many hours of work? Great!! Consider buying me a cup of coffee in return! [ Click here ]



Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
A2 Hosting