Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

Moments module classes icons

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Try adding this

#belowcontent .moduletable.fa:before {content: " ";}

#belowcontent .moduletable. h3.fa-money:before {content: "\f0d6";}
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Many Thanks

but I try to extend it to show the icon on the right side and with some space after the h3. Bit neverthink happen!

#belowcontent .moduletable. h3.fa-money:before {
content: "\f0d6";
float: right;
padding-left: 6px;

}

Any Idea?
Ricardo
  • ricardos's Avatar
  • ricardos
  • LIfetime Developer - Big Bamboo
  • 297 posts
  • Karma: 0
The administrator has disabled public write access.
Try instead using :after
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Now I use the h3 with a specifical class together with the icon and icon-calender classes. the css look like:

h3.title-text {
color:#fff !important;
font-weight: normal;

display: inline-block;
background-color: #a0a73a;
background-image: linear-gradient(to bottom, #a6ad3c, #979e37);
background-repeat: repeat-x;
border-bottom: 4px solid #82872f;
border-radius: 3px;
margin: 0px -10px 20px;
padding: 6px 20px;
}

h3.icon-calendar:before{
float: right;
padding-left: 10px;
}

but unfortulantelly something change the font-family and font-size

I try to put fant-family: open sans, on the h3.title-text class and the icon disapear. How can I have both toguether in the h3 tag?

Ricardo
  • ricardos's Avatar
  • ricardos
  • LIfetime Developer - Big Bamboo
  • 297 posts
  • Karma: 0
The administrator has disabled public write access.
never happens

I try so:


#belowcontent .moduletable. h3.fa-money:before {
content: "\f0d6";
}


#belowcontent .moduletable. h3.fa-money:after{
float: right;
padding-left: 10px;

}

and so:

#belowcontent .moduletable. h3.fa-money:after {
content: "\f0d6";
float: right;
padding-left: 10px;
}

and it´s change nothing

Ricardo
  • ricardos's Avatar
  • ricardos
  • LIfetime Developer - Big Bamboo
  • 297 posts
  • Karma: 0
The administrator has disabled public write access.
Try using :after rather than floating it - may give more flexibility with the css
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
and remove the float - still not working?
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
I m not sure if I understand you suggestion,
I try
#belowcontent .moduletable. h3.fa-money:after{
content: "\f0d6";
padding-left: 10px;

}

and also I try:

#belowcontent .moduletable. h3.fa-money:before {
content: "\f0d6";
}

#belowcontent .moduletable. h3.fa-money:after{
padding-left: 10px;
}

both make no effect on the h3 tour cost with the money icon, you need scroll down to see

www.yoga-retreats.in/yoga-trekking/yoga-and-trekking-in-the-himalaya-bhrigu-lake-trek.html
  • ricardos's Avatar
  • ricardos
  • LIfetime Developer - Big Bamboo
  • 297 posts
  • Karma: 0
The administrator has disabled public write access.
works for me

#belowcontent .module-inner h3.fa-money:after {
content: "\f0d6";
padding-left:5px
}

#belowcontent .module-inner h3.fa-money:before {
content: " ";
}
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Your styling has extra unwanted .
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Unwanted? don´t understand...

How can I restore the correct font-family

at the on the clausure :before and :after never happen.

some other form to realize it?

Ricardo
  • ricardos's Avatar
  • ricardos
  • LIfetime Developer - Big Bamboo
  • 297 posts
  • Karma: 0
The administrator has disabled public write access.
If you vew the css - this bit is wrong

.moduletable.

extra dot meaning a class - which you don't want
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
you thuink this line?

#belowcontent .moduletable.fa:before {content: " ";}
  • ricardos's Avatar
  • ricardos
  • LIfetime Developer - Big Bamboo
  • 297 posts
  • Karma: 0
The administrator has disabled public write access.
All the stuff you tried has the error

#belowcontent .moduletable. h3.fa-money:after{
content: "\f0d6";
padding-left: 10px;

}

and also I try:

#belowcontent .moduletable. h3.fa-money:before {
content: "\f0d6";
}

#belowcontent .moduletable. h3.fa-money:after{
padding-left: 10px;
}
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
With using :after hopefully we should be able to target the text and the icon separately with before we can't
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
sorry, for me it ´s no clear

this is my code:
#mainWrap .zen-container ul:before, #belowcontent .module-inner ul:before {content: " ";}

#belowcontent .moduletable.fa:before,
#belowcontent .module-inner h3.fa-money:before
{content: " "; }


#belowcontent .module-inner h3.fa-money:after {
content: "\f0d6";
padding-left: 10px
}

the result can you see here

www.yoga-retreats.in/yoga-trekking/yoga-and-trekking-in-the-himalaya-bhrigu-lake-trek.html

what I try now is to have the h3 with the same font-family and fint size as defined on the template (open sans)m but until now was not sucessfull. Any idea?

Many Thanks in advance
Ricardo
  • ricardos's Avatar
  • ricardos
  • LIfetime Developer - Big Bamboo
  • 297 posts
  • Karma: 0
The administrator has disabled public write access.
We need to target the text without changing the icon font hence why you need an after rather than a before

with a :before and :after we can hopefully target one without the other
with only a before it won't work

the icon needs to be after with no float
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers