Advertisement
How to add article separator in homepage
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
-
- Joomla! Apprentice
- Posts: 9
- Joined: Fri Aug 05, 2011 10:28 pm
How to add article separator in homepage
Anyone knows how to add an articole separator for each news on the frontpage? I'm using Joomla 1.7
I have tried with adding this part of code in my layout css:
.article_separator {
background:transparent url(../images/arrow-1.png) repeat-x scroll center;
clear:both;
display:block;
height:2em;
}
But it didn't work.
Any suggestion?
Thanks everyone.
I have tried with adding this part of code in my layout css:
.article_separator {
background:transparent url(../images/arrow-1.png) repeat-x scroll center;
clear:both;
display:block;
height:2em;
}
But it didn't work.
Any suggestion?
Thanks everyone.
Last edited by Impe on Fri Aug 05, 2011 10:51 pm, edited 1 time in total.
Advertisement
-
- Joomla! Apprentice
- Posts: 9
- Joined: Fri Aug 05, 2011 10:28 pm
Re: How to add article separator in homepage
Searchin on the web I've find out that on the previous joomla versions you have to modify the file in folder components\com_content\views\frontpage\tmpl\default.php
But in Joomla 1.7 this folder doesn't exists.
But in Joomla 1.7 this folder doesn't exists.
-
- Joomla! Apprentice
- Posts: 9
- Joined: Fri Aug 05, 2011 10:28 pm
Re: How to add article separator in homepage
I've found out the file to modify:
components\com_content\views\featured\tmpl\default_item.php
Thank you anyway.
components\com_content\views\featured\tmpl\default_item.php
Thank you anyway.
-
- Joomla! Apprentice
- Posts: 23
- Joined: Fri Oct 26, 2007 9:10 pm
Re: How to add article separator in homepage
Impe,
What do you do in that default_item.php file to add a separator between articles?
I am lost. Need some help. Thanks.
What do you do in that default_item.php file to add a separator between articles?
I am lost. Need some help. Thanks.
-
- Joomla! Apprentice
- Posts: 9
- Joined: Thu Jun 16, 2011 4:58 pm
Re: How to add article separator in homepage
Hi, I would really like an answer to this too.
I would like to add any kind of separator (at least a normal hr) to all articles on my site.
Thanks!
I would like to add any kind of separator (at least a normal hr) to all articles on my site.
Thanks!
- Per Yngve Berg
- Joomla! Master
- Posts: 31340
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: How to add article separator in homepage
It's already in the core of J1.7 It's item-separator, not article-separator.
Code: Select all
.item-separator {
background:transparent url(../images/arrow-1.png) repeat-x scroll center;
clear:both;
display:block;
height:2em;
}
-
- Joomla! Apprentice
- Posts: 23
- Joined: Fri Oct 26, 2007 9:10 pm
Re: How to add article separator in homepage
What file do I find that in so I can make the separation bigger?
Thanks!
Thanks!
- Per Yngve Berg
- Joomla! Master
- Posts: 31340
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: How to add article separator in homepage
The css file of your template. If it's not there, create it.
-
- Joomla! Apprentice
- Posts: 23
- Joined: Fri Oct 26, 2007 9:10 pm
Re: How to add article separator in homepage
THANK YOU. THANK YOU. THANK YOU.
Awesome. Countless hours I has blown trying to figure that out. I appreciate you bestowing your Joomla-awsomeness upon this query. From across the faceless void of the net, know that I am smiling!
Awesome. Countless hours I has blown trying to figure that out. I appreciate you bestowing your Joomla-awsomeness upon this query. From across the faceless void of the net, know that I am smiling!
- Per Yngve Berg
- Joomla! Master
- Posts: 31340
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: How to add article separator in homepage
This is a 10 min. task with the right tools.
http://docs.joomla.org/Diagnostic_tools
http://docs.joomla.org/Using_Firebug_Wi ... la_Website
http://docs.joomla.org/Diagnostic_tools
http://docs.joomla.org/Using_Firebug_Wi ... la_Website
-
- Joomla! Apprentice
- Posts: 9
- Joined: Thu Jun 16, 2011 4:58 pm
Re: How to add article separator in homepage
Thank you, everyone participating in this thread. I tried adding Per Yngve Berg's code to my template.css file but it doesn't change anything.
I still need to add a separator between all the articles on the site, even if it's some normal hr and a little margin.
I'm running Joomla 1.7
Thanks!
I still need to add a separator between all the articles on the site, even if it's some normal hr and a little margin.
I'm running Joomla 1.7
Thanks!
-
- Joomla! Apprentice
- Posts: 45
- Joined: Sat Feb 19, 2011 1:54 am
Re: How to add article separator in homepage
Hi,
i only find <div class="item-separator"></div> on components\com_content\views\featured\tmpl\default_item.php of my joomla 1.7,
can anyone tell me more detail about where to modify it ?
thank you
i only find <div class="item-separator"></div> on components\com_content\views\featured\tmpl\default_item.php of my joomla 1.7,
can anyone tell me more detail about where to modify it ?
thank you
- Per Yngve Berg
- Joomla! Master
- Posts: 31340
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: How to add article separator in homepage
Do you have the graphic (arrow-1.png)?palmerin wrote:Thank you, everyone participating in this thread. I tried adding Per Yngve Berg's code to my template.css file but it doesn't change anything.
I still need to add a separator between all the articles on the site, even if it's some normal hr and a little margin.
Or you can put a background color to it:
Code: Select all
.item-separator {
background-color: blue;
clear:both;
display:block;
height:2em;
}
-
- Joomla! Apprentice
- Posts: 45
- Joined: Sat Feb 19, 2011 1:54 am
Re: How to add article separator in homepage
Hi,where can i put the codes ? thank you
Advertisement