My custom template doesn't support articles in multiple columns
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.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
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.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
-
- Joomla! Apprentice
- Posts: 21
- Joined: Fri Jun 12, 2009 12:43 pm
My custom template doesn't support articles in multiple columns
Hi Everyone,
I have a problem with my custom template. It was done a good while ago and I can't reach the developer.
If I create "featured articles" menu, and specify 2 columns under layout, it renders with a single column - please ignore unrelated warnings and sorry it's in Russian:
https://russianchurchindandenong.com.au ... d/ru/home4
If I create exactly the same menu but specify another template, it renders 2 columns as expected (again please ignore unrelated errors)
https://russianchurchindandenong.com.au ... d/ru/home3
I'm not even sure if problem is with CSS or PHP and I'm totally stuck; any help will be great. Template files are attached.
I have a problem with my custom template. It was done a good while ago and I can't reach the developer.
If I create "featured articles" menu, and specify 2 columns under layout, it renders with a single column - please ignore unrelated warnings and sorry it's in Russian:
https://russianchurchindandenong.com.au ... d/ru/home4
If I create exactly the same menu but specify another template, it renders 2 columns as expected (again please ignore unrelated errors)
https://russianchurchindandenong.com.au ... d/ru/home3
I'm not even sure if problem is with CSS or PHP and I'm totally stuck; any help will be great. Template files are attached.
You do not have the required permissions to view the files attached to this post.
- effrit
- Joomla! Guru
- Posts: 846
- Joined: Sun Nov 12, 2017 2:21 pm
- Location: middle of Russia
- Contact:
Re: My custom template doesn't support articles in multiple columns
hi
add this to the end of template css, then delete cach
add this to the end of template css, then delete cach
Code: Select all
.cols-2 div.item {
width: 46%;
padding: 2%;
overflow: hidden;
}
http://effrit.com/joomla | clean Word/Excel tables: http://r91228pz.bget.ru
-
- Joomla! Apprentice
- Posts: 21
- Joined: Fri Jun 12, 2009 12:43 pm
Re: My custom template doesn't support articles in multiple columns
Awesome, thank you! This is a great start; I have all articles in the left column.effrit wrote:hi
add this to the end of template css, then delete cach
Can you please extend the magic so articles appear in both left and right columns?
Thank you,
Alex
- effrit
- Joomla! Guru
- Posts: 846
- Joined: Sun Nov 12, 2017 2:21 pm
- Location: middle of Russia
- Contact:
Re: My custom template doesn't support articles in multiple columns
this is not awesome because you not did what i write.
https://russianchurchindandenong.com.au/newdand/cache/
clean files inside this folder, press ctrl+f5 in browser
https://russianchurchindandenong.com.au/newdand/cache/
clean files inside this folder, press ctrl+f5 in browser
http://effrit.com/joomla | clean Word/Excel tables: http://r91228pz.bget.ru
- effrit
- Joomla! Guru
- Posts: 846
- Joined: Sun Nov 12, 2017 2:21 pm
- Location: middle of Russia
- Contact:
Re: My custom template doesn't support articles in multiple columns
modify string
width: 46%;
to
width: 46% !important;
clean cache again
width: 46%;
to
width: 46% !important;
clean cache again
http://effrit.com/joomla | clean Word/Excel tables: http://r91228pz.bget.ru
-
- Joomla! Apprentice
- Posts: 21
- Joined: Fri Jun 12, 2009 12:43 pm
Re: My custom template doesn't support articles in multiple columns
Thank you so much buddy,
that was cash issue :-)
Much appreciate your help!
that was cash issue :-)
Much appreciate your help!
-
- Joomla! Apprentice
- Posts: 21
- Joined: Fri Jun 12, 2009 12:43 pm
Re: My custom template doesn't support articles in multiple columns
One more request if I can: can mobile devices render a single column? I know I'm pushing the boundaries :-)
- effrit
- Joomla! Guru
- Posts: 846
- Joined: Sun Nov 12, 2017 2:21 pm
- Location: middle of Russia
- Contact:
Re: My custom template doesn't support articles in multiple columns
you can read this
https://www.w3schools.com/cssref/css3_pr_mediaquery.asp
and add condition with
width: 100%;
for your columns inside it
https://www.w3schools.com/cssref/css3_pr_mediaquery.asp
and add condition with
width: 100%;
for your columns inside it
http://effrit.com/joomla | clean Word/Excel tables: http://r91228pz.bget.ru
- Per Yngve Berg
- Joomla! Master
- Posts: 30918
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: My custom template doesn't support articles in multiple columns
You are missing that functionality because you don't load Bootstrap in your template.
http://getbootstrap.com/2.3.2/scaffoldi ... gridSystem
Bootsrap is loaded in the head section of index.php
http://getbootstrap.com/2.3.2/scaffoldi ... gridSystem
Bootsrap is loaded in the head section of index.php
Code: Select all
JHtmlBootstrap::framework();
-
- Joomla! Apprentice
- Posts: 21
- Joined: Fri Jun 12, 2009 12:43 pm
Re: My custom template doesn't support articles in multiple columns
Hi All, thank you for your help. I have another question: why there are gaps between the articles??? How can I fix that?
https://russianchurchindandenong.com.au/newdand/ru/
https://russianchurchindandenong.com.au/newdand/ru/