Styling the title

Support forum dedicated to free and advanced Joomla content presentation module with various layout options and data sources support.
GK User
Mon Sep 23, 2013 9:53 pm
Hi,

How can I add a css style to a title?

Now the first word is bold, rest is normal...
I want normal text and small capitalized in one title.
Can I just add <mystyle> to the title? or should I set this in the article.

Any help is welcome.

Regards,

Pascal
User avatar
Gold Boarder

GK User
Mon Sep 23, 2013 10:01 pm
Hi,
1) In general read those tips: http://www.gavick.com/documentation/cat ... -template/

2) If you're asking about NSP - I don't think it's possible beacuse module takes article titles from articles and Joomla don't allows to use HTML tags inside titles.
But of course you can try to play with CSS3 features If you have time.
User avatar
Platinum Boarder

GK User
Wed Sep 25, 2013 11:14 pm
Thanks Pawel,

Right now the first title word is bold, is it possible to change this to my needs?
I want to show a product name (title) with the manufacturer right below this (subtitle).
And after this the 'read more'.

How could I get this done...


Regards,

Pascal
User avatar
Gold Boarder

GK User
Thu Sep 26, 2013 11:20 pm
Right now the first title word is bold, is it possible to change this to my needs?

Yes, but what are your needs? Color, font-size, font-weight. Please more details + you're using module GK4 or GK5 + URL.

I want to show a product name (title) with the manufacturer right below this (subtitle).

I'm not sure it would be easy, I didn't saw option to show Manufacturer in this module under product title, etc.. so probably this would be customization job - not support.
User avatar
Platinum Boarder

GK User
Tue Oct 01, 2013 9:16 am
H Pawel,

I'm using News Show Pro GK5 1.3.1
I want to display the titel in 2 lines so font size would be nice.
The site is at: http://pasvorm.com/vino-elano/assortiment
example:
Il Massiccio (main title)
I.G.T. Sangiovese di Toscane (sub title)

Hope this explains it more clearly.

Thanks in advance,

Pascal
User avatar
Gold Boarder

GK User
Wed Oct 02, 2013 8:40 pm
But you used font-size:21px for
.gkNspPM-NewsBlocks > figure > figcaption h3
and
.gkNspPM-NewsBlocks > figure.inverse > figcaption h3

in override.css so you can change to 16px or less, right.
User avatar
Platinum Boarder

GK User
Thu Oct 03, 2013 7:00 pm
Hi Pawel,

What I need is something like this in the html:

<figcaption>
<h3>
Il Castelluccio
<subtitle>I.G.T. Bianco</subtitle>
</h3>

But right now if I insert a title just the first word is bold.
So is this editable to produce the above?

Best regards,

Pascal

ps where can I find settings to receive an email if a reply to the forum is posted?
User avatar
Gold Boarder

GK User
Thu Oct 03, 2013 8:55 pm
So is this editable to produce the above?

Hmm, you can always edit and modify our modules.
But as you know it uses K2 items title as a title inside NSP module.

Joomla articles and K2 doesn't allow you to add subtitle for them. So it will be a little bit harder.
User avatar
Platinum Boarder

GK User
Thu Oct 03, 2013 9:03 pm
p.s.
But NSP allows you to show few words from K2 item content. But you have to to divide article using Read more button.


So in your case, you can try to :
1) Use title - like you did
2) Use first sentence of K2 item as subtitle
3) Hide "Introtext" in K2 category options (Item view options - tab)

This is my theory, but should work.
User avatar
Platinum Boarder

GK User
Mon Oct 07, 2013 9:21 pm
Hi Pawel,

I think it' a lot easier to add the subtitle to the images in this case.
But then I still have 1 question, how can I turn off the 'first word bold' in titles?

Thanks & regards,

Pascal
User avatar
Gold Boarder

GK User
Mon Oct 07, 2013 9:43 pm
No more bold for first word:

Code: Select all
.gkNspPM-NewsBlocks > figure > figcaption strong { font-weight: normal; }
User avatar
Platinum Boarder

GK User
Mon Oct 07, 2013 11:03 pm
Hi Pawel,

The idea to use text in images was not successful :(
I try to figure out how to get your solution right.
But I can't get the subtitle (as part of the article text) in the overview.
I'm a bit confused by the many settings.

Thanks,

Pascal
User avatar
Gold Boarder

GK User
Mon Oct 14, 2013 9:39 pm
Hi Pawel,

Could you tell me what settings should be configured to get the title and subtitle right?
Right now I have a k2 categorie using:
'Item view options in category listings' and 'Item view options'

But how should I configure my 'items' right now I'm using 'inherit from category'?
Also where should I set the 'read more' in article and/or 'Item view options in category listings'?

Thanks in advance.

Pas
User avatar
Gold Boarder

GK User
Sun Oct 20, 2013 12:18 pm
You can always request support from us, but you need take in your mind that customization is not regular Template support.
User avatar
Platinum Boarder

GK User
Sun Oct 20, 2013 9:35 pm
Hi Pawel,

I think it is the template, but there's so many settings i'm a bit confused how and where I should make the settings as you suggested before to create the right presentation of my title & subtitle.

Hope you can explain this in detail.

Regards,

Pas
User avatar
Gold Boarder

GK User
Mon Oct 21, 2013 7:39 pm
Your page is "Under construction" I can see - so I can help.

Please send me more details in PM.
If you add screenshot which changes it will help me understand your idea.
User avatar
Platinum Boarder

GK User
Mon Oct 21, 2013 8:22 pm
Hi Pawel,

I send you a pm, but how can I add an example image?
Also the message is in outbox, not in send...is this right?

Regards,

Pas
User avatar
Gold Boarder

GK User
Mon Oct 21, 2013 8:50 pm
Yes I get it.

About screenshot - you can use also MS Paint and your art skills to show me what you really want. :mrgreen:
User avatar
Platinum Boarder

GK User
Mon Oct 21, 2013 9:21 pm
Hi Pawel,

Weird, now I can use Upload attachment?

Here you go


Regards,

Pas
User avatar
Gold Boarder

GK User
Wed Oct 23, 2013 11:36 pm
But it looks nice, what and why you want to change it.
User avatar
Platinum Boarder

GK User
Thu Oct 24, 2013 8:30 am
Hi Pawel,

This is exactly how it should be, but I can't reproduce this in my site.
It's just a title and subtitle with 2 styles...
But due to the many settings I can't get it right.

Hope you can explain.

Regards,

Pascal
User avatar
Gold Boarder

GK User
Sat Oct 26, 2013 11:41 am
ok, now I see right url, I will think how to show more fields/info
User avatar
Platinum Boarder

GK User
Sat Oct 26, 2013 11:47 am
Hi Pawel,

I don't understand your comment...sorry?

Regards,

Pascal
User avatar
Gold Boarder

GK User
Sat Oct 26, 2013 4:52 pm
sorry, this was shortcut from I have to check all possibles of NSP module.
User avatar
Platinum Boarder

GK User
Sat Oct 26, 2013 5:10 pm
Because our NSP allows to show tags from K2 - so maybe use tag as a "second" title of wine

I mean:
K2 article title ---> Il Castelluccio
K2 tag ("%TAGS") --> I.G.T. Sangiovese di Toscane (use only one for article)

NSP settings
k2-tags.png



So in module you will show :
1) Image (wine bottle)
2) Title
3) Tag
4) More details

hmm? This should work on your page as worked on my.
User avatar
Platinum Boarder

GK User
Sat Oct 26, 2013 5:19 pm
p.s.
Remember to publish (enable) in Article layout (tab) --> Information order [ON]


The only drawback of this solution is that it theoretically you should disable linking from the tag, only small customization of NSP source code (php) is required.
User avatar
Platinum Boarder

GK User
Sat Oct 26, 2013 5:30 pm
OK, I have checked for you, so please edit only this file:

modules\mod_news_pro_gk5\tmpl\com_k2\view.php

line 212
Code: Select all
if($i == 0) {
 $info_tags .= '<a href="' . $link . '">' . $tag . '</a>';
 } else {
 $info_tags .= ', <a href="' . $link . '">' . $tag . '</a>';
 }


You have to delete content of href for example

Code: Select all
if($i == 0) {
 $info_tags .= '<a href="">' . $tag . '</a>';
 } else {
 $info_tags .= ', <a href="">' . $tag . '</a>';
 }


Or more radical (without any link)

Code: Select all
if($i == 0) {
 $info_tags .= ' ' . $tag . ' ';
 } else {
 $info_tags .= ' ' . $tag . ' ';
 }


:!: Note: You don't have to copy code from this topic just delete unnecessary signs, it would be safer.
User avatar
Platinum Boarder

GK User
Mon Oct 28, 2013 9:03 am
Thanks Pawel,

This makes sense. But where do I set 'information block' and 'info format'?

Right now I have:

Module: News Show Pro GK5 - Mode: news blocks
Source of articles: K2 Categories - Category Wine (in here all products)

In the K2 category of K2 articles I can't see these options either.

Regards,

Pascal
User avatar
Gold Boarder

GK User
Mon Oct 28, 2013 11:11 am
All those information blocks you should find in NSP module configuration, there is such a tab in "Article layout".
I have added you a small screen shot before.
But ok I will add again, but much more bigger :P please click on image
000-info-format.jpg


and another setting in this same tab
00-article-laoput.jpg



Now it your turn, not mine -- I'm going for multi-day vacation.
User avatar
Platinum Boarder

GK User
Mon Oct 28, 2013 11:43 am
Thanks Pawel,

Think I can make this work.
Have an nice vacation!

Regards,

Pascal
User avatar
Gold Boarder

GK User
Mon Oct 28, 2013 11:52 am
Thanks for understanding.
If you would have still small problems use PM only, I will try to answer if I could from tablet :lol:
User avatar
Platinum Boarder


cron