Blog Styling

Post Reply
bmherard
Posts: 6
Joined: Thu Jan 16, 2020 8:57 pm

Blog Styling

Post by bmherard »

I'm creating a fluid theme for WonderCMS 3.x. but want to constrain some content, like the blog, to a fixed width. I'm using Bootstraps "container-fluid" and "container". I know where in the "class.SimpleBlog.php" to put my opening <div> (see below) but can't figure out where to put the closing </div>. Does anyone have an idea?

175 // Start rendering homepage
176 $args[0] = "<div class='container'>";
bmherard
Posts: 6
Joined: Thu Jan 16, 2020 8:57 pm

Re: Blog Styling

Post by bmherard »

bmherard wrote: Mon Jan 27, 2020 9:11 pm I know where in the "class.SimpleBlog.php" to put my opening <div> (see below) but can't figure out where to put the closing </div>.
Figured it out...

202 HTML;
203 }
204 $args[0] .= "</div>";
205
206 break;


This is really only useful if your theme doesn't use the 'subside' block as side bar in the main content area.
User avatar
StephanStanisic
Support/Developer
Posts: 37
Joined: Fri Jul 05, 2019 8:51 pm

Re: Blog Styling

Post by StephanStanisic »

Hi @bmherard,

Sorry for the late reply, I need to figure out how to enable email notifications :D

If have made more modifications to the plugin, would you be so kind to open a pull request on github? Updates like to support more themes are important to have.
Post Reply