template for mini front page
- Posted by libbyy (22) Offline
Hi
I would like to be able to style the intro titles of each item separately. I have found this line in the template:
if (!empty($show_title)) {
echo modMiniFrontPageHelper::showTagFP( $item->title, $item->link, true, $title_link, '<span class="mfp-introtitle">', '</span><br/>' );
}
I would like to add a differential to this class:
<span class="mfp-introtitle">
Is there any way I can do this?
10 years 4 weeks ago #1
by libbyy
I would like to be able to style the intro titles of each item separately. I have found this line in the template:
if (!empty($show_title)) {
echo modMiniFrontPageHelper::showTagFP( $item->title, $item->link, true, $title_link, '<span class="mfp-introtitle">', '</span><br/>' );
}
I would like to add a differential to this class:
<span class="mfp-introtitle">
Is there any way I can do this?
Please Log in or Create an account to join the conversation.
- Posted by libbyy (22) Offline
to this class:
mfp-introtitle
(sorry, some of my post was stripped)
10 years 4 weeks ago #2
by libbyy
mfp-introtitle
(sorry, some of my post was stripped)
Please Log in or Create an account to join the conversation.
- Posted by TemplatePlazza (5318) Offline
Hi assuming you have chosen 'default' layout type and Other article placement = bottom, then you should modify this [...]/modules/mod_minifrontpage/themes/default/tmpl/bottom.php
Try to change the code into something like this
10 years 4 weeks ago #3
by TemplatePlazza
Try to change the code into something like this
echo modMiniFrontPageHelper::showTagFP( $item->title, $item->link, true, $title_link, '<span class="mfp-newclass">', '</span><br/>' );
Please Log in or Create an account to join the conversation.
- Posted by libbyy (22) Offline
This is not quite what I'm after - I want each item to have it's title a different color so I need mfp-newclass to be followed by a variable associated with the item number (or some individual class) so it could be .mfp-newclass.item1 and .mfp-newclass.item2
Possible?
10 years 4 weeks ago #4
by libbyy
Possible?
Please Log in or Create an account to join the conversation.
- Posted by TemplatePlazza (5318) Offline
For that purpose, you can do that via CSS by using nth-child so you don't need to modify the php code
Can you let me know the URL of your site so I can take a look?
10 years 3 weeks ago #5
by TemplatePlazza
Can you let me know the URL of your site so I can take a look?
Please Log in or Create an account to join the conversation.
- Posted by libbyy (22) Offline
Hi
gautengfilm.org.za/newsite
Towards the bottom of the page we have upcoming events displayed twice. The first one is a static module and the second is mini front page
10 years 3 weeks ago #6
by libbyy
gautengfilm.org.za/newsite
Towards the bottom of the page we have upcoming events displayed twice. The first one is a static module and the second is mini front page
Please Log in or Create an account to join the conversation.