Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages »

[SOLVED] Multicolumn, how to get it working again?


  #1  
Old Sep 4, 2012, 06:04 AM
cognosco
 
33 posts · Sep 2010
Hi, I always used multi column with the following settings in the POST CONTAINER.
<?php if( is_home() ) { ?>
width: 200px;
display: inline-block;
<?php } ?>

It worked well. But since PHP is not allowed it doesn't work anymore. Using the code without PHP brackets works, but then every page is multicolumn. I only want this to be on the homepage and category pages.
How can I fix this? I am looking already a very long time for a solution to this problem. Thanks!
  #2  
Old Sep 4, 2012, 06:40 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
you should be able to do this in the CSS Inserts by using
HTML Code:
body.home div.post, 
body.home div.page { 
   width: 200px;
   display: inline-block;
}
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Sep 4, 2012, 11:00 AM
cognosco
 
33 posts · Sep 2010
Thank you! This works!

But, it works on the homepage only. Not yet in the category pages. How can I find the code to implement this for category pages too?
I guess body.home has to do with this. I tried body.category but this does not work. Do you have the right code? Thanks.
  #4  
Old Sep 4, 2012, 11:23 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Body.category should work. Did you duplicate the reat of the code and replace the ody.home with the body.category?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Sep 4, 2012, 11:25 AM
cognosco
 
33 posts · Sep 2010
Quote:
Originally Posted by juggledad
Body.category should work. Did you duplicate the reat of the code and replace the ody.home with the body.category?
Yes, that was exactly what I did.
I had:

body.home div.post,
body.home div.page {
width: 200px;
display: inline-block;
}

body.category div.post,
body.category div.page {
width: 200px;
display: inline-block;
}
  #6  
Old Sep 4, 2012, 11:31 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
What is the URL? And what do you mean by multi column?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Sep 4, 2012, 01:12 PM
cognosco
 
33 posts · Sep 2010
Thanks again. I fixed it, with your infos.
I made a stupid mistake. I wrote the body.category code in the POST CONTAINER box, but I forgot it had to be written in the CSS-INSERTS page instead.

With multicolumn I mean a layout like this:
post1 | post 2 | post 3
post4 | post5 | post6
post7 | post8 | post9

In this example I have 3 columns, instead of the default:
post1
post2
post3..

To have the first (multicolumn) layout (on a 960px width site) I pasted the following code in the CSS-INSERTS box:
Quote:
body.home div.post,
body.home div.page {
width: 307px;
display: inline-block;
}
body.category div.post,
body.category div.page {
width: 307px;
display: inline-block;
}

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] page align not working IE, but working in other browsers + headers not rotat mafgirl Atahualpa 3 Wordpress theme 12 Sep 21, 2010 11:38 AM
Following widget not working properly, followers working marced Sidebars & Widgets 0 Apr 4, 2010 05:01 AM


All times are GMT -6. The time now is 10:03 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.