How to add k2 item titles under images in portfolio style

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Mon May 19, 2014 3:30 pm
Reply with quote
Report this post
Hello!

I am using Joomla 3.2.3 and this is the website I am working on: http://puertoplataresortvilla.com/

Once you scroll down, you can see 6 images in portfolio style that lead to 6 K2 articles. I want to have titles under each of the images. How can I do that?

I did search the forum for my issue and I found some stuff but it did not help me...

Thank you!
Lucia
User avatar
Junior Boarder

teitbite
Tue May 20, 2014 10:22 am
Reply with quote
Report this post
Hi

Please send me an access to ftp. I'll make this modification and will publish the answer here for other users.
User avatar
Moderator

GK User
Tue May 20, 2014 2:07 pm
Reply with quote
Report this post
Great, I am sure every body will find your tips pretty useful. In fact, I need to name the pictures also, so I we will be waiting for your answer.

Thank you
User avatar
Expert Boarder

GK User
Wed May 21, 2014 2:51 pm
Reply with quote
Report this post
Teitbite,

I sent you the access yesterday.

Thank you for helping!
User avatar
Junior Boarder

GK User
Wed May 21, 2014 10:18 pm
Reply with quote
Report this post
Hello, can you please tell us how to add the titles under the images?

Thank you!
User avatar
Expert Boarder

GK User
Fri May 23, 2014 5:48 pm
Reply with quote
Report this post
I did not get any help yet. So I'm still waiting to see if this can be worked out... :/
User avatar
Junior Boarder

teitbite
Sat May 24, 2014 11:44 am
Reply with quote
Report this post
Hi

Please do not bump own threads. Every bump moves question at the end of the line and takes more time for me to get to it.

Please edit file /modules/mod_news_pro_gk5/portal_modes/portfolio/controller.php and add this line:

Code: Select all
            echo '<h4>'.strip_tags($this->parent->content[$i]['title']).'</h4>';


into line 41

Than add this code to end of /modules/mod_news_pro_gk5/portal_modes/portfolio/style.css file (default module file needs to enabled in module settings):

Code: Select all
.gkNspPM-Portfolio .gkImagesWrapper {
    position: relative;
}

.gkNspPM-Portfolio .gkImagesWrapper h4 {
    background-color: #7484FF;
    bottom: 0;
    color: #FFFFFF;
    position: absolute;
    width: 100%;
}
User avatar
Moderator

GK User
Tue May 27, 2014 3:31 pm
Reply with quote
Report this post
Thank you so much Teibite!!! You rock!
User avatar
Junior Boarder

teitbite
Thu May 29, 2014 4:49 pm
Reply with quote
Report this post
Hi

Thanks :) Glad I could help.
User avatar
Moderator

GK User
Sun Dec 20, 2015 6:54 pm
Reply with quote
Report this post
Hi teitbite
does your tip works on the latest NSPGK5 version (1.9.3.1) ?
I can't make it works
controller.php and style css are in the tmpl folder what is not the case in your example
I put the line into controller.php just before "echo '<div class="gkNspPM gkNspPM-Portfolio'" (line 44)
I also tried to put it at line 41
I changed the css also but it has no effect
thanks
User avatar
Gold Boarder

teitbite
Wed Dec 23, 2015 2:35 pm
Reply with quote
Report this post
Hi

Can You please include this file so I'll check if it's in a right place ?
User avatar
Moderator


cron