Replace mouseover "+" in portfolio II with "Article-Title"

News Show Pro GK5 - flexible, responsive and easily extendable free Joomla module support forum.
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Tue Aug 26, 2014 4:33 pm
Hey guys!

I am working on a page with your NEWS PRO GK5 module - everything "sexy" so far.
When hovering the images, there appears a nice "+" in PORTFOLIO II mode.

Any ideas how I can replace this "+" with the article-title?

http://www.cool-o-mat.com/rtn-touring/-02/


Thank you very much for your perfect support in advance!
User avatar
Expert Boarder

GK User
Wed Aug 27, 2014 10:04 am
Please add this code to override.css file in root/templates/gk_template_name/css directory :
Code: Select all
.gkNspPM-Portfolio2 .gkImagesWrapper > a::before {
content: "+";
}

and then just remember to enable "Use override CSS" option in template advanced settings tab. You can replace this content property "+" by your own different symbol or text.
User avatar
Platinum Boarder

GK User
Wed Aug 27, 2014 12:12 pm
Thank you - unfortunately I do not use a gavick-template on this page.
So I will have to adjust that in the original CSS file - no problem so far.

Any last info needed:
What do I have to put into the code instead if "+" to be able to load the article-title of each article into the module instead of the "+"?
User avatar
Expert Boarder

GK User
Wed Aug 27, 2014 12:16 pm
Please use

Code: Select all
.gkNspPM-Portfolio2 .gkImagesWrapper > a::before {
content: attr(title);   
}
User avatar
Platinum Boarder

GK User
Wed Aug 27, 2014 12:37 pm
Yeah - worked brillant.
Thynk you very much!

I added your code to modules/mod_news_pro_gk5/portal_modes/portfolio2/stlye.css
plus adjusted the font-sizes a bit (64 was a bit too huge to display more than one character). Search for this code:

Code: Select all
.gkNspPM-Portfolio2 .gkImagesWrapper > a:before {
   color: #fff;
   content: "+";   
   font-size: 20px;
   height: 64px;
   left: 50%;
   line-height: 21px;
   margin: -20px 0 0 -38px;
   opacity: 0;
   position: absolute;
   text-align: center;
   top: 60%;
   -webkit-transition: all .3s ease-out;
   -moz-transition: all .3s ease-out;
   -ms-transition: all .3s ease-out;
   -o-transition: all .3s ease-out;
   transition: all .3s ease-out;
   width: 64px;
   z-index: 2;
}
User avatar
Expert Boarder

GK User
Fri Aug 29, 2014 10:45 am
My advise is to move your code to override.css (if you use one of GavickPro templates) because then after NSP update you will loose this changes.
User avatar
Platinum Boarder

GK User
Tue Sep 30, 2014 11:54 pm
This helped, but when I override the code in the override.css, I get the result you see in the attachement.
Title overlay.jpg

The title is mixed up with Symbols, even though the Titel just says "Transylvania". Als it is centered vertical and going under the thumbnals below the actual one. This happens to all titeles.

What is the mistake?

Thank you,
Martin
User avatar
Senior Boarder


cron