Is there a way to make the Page Builder Content appear below the Latest Articles and Sidebar for the Front Page template on the News Magazine demo?
The home page I am setting up a little different. Because there is a lot of repetition of the categories in the demo, I chose to make each section tags instead. Thus, for this layout, it would make more sense to put the Latest Articles at the top instead at the bottom of the page because that is what the visitors are going to look for first – the newer articles.
HI
Yes it is possible by editing the code from page-pagebuilder-latest.php file: http://screencast.com/t/zAeXzsF1ZC Replace the original code with this one and it should work fine: http://pastebin.com/TUtnpxEK
Before making any changes in theme’s code make sure you do a full backup as a security measure: https://codex.wordpress.org/WordPress_Backups
Thanks!
Andrei,
After placing the patched code in, I am running into a problem. The news ticker is merged into the article container. This has to do with either the sidebar having too much content extending past the article list or not enough posts. Somehow we need to clear that container div. I tried below and it didn’t work in Custom CSS:
.td-main-content-wrap {
clear:both;
}
.td-pb-article-list {
clear:both;
}
My post limit setting was at 6. But if I make it 10, the ticker renders correctly below the latest article container. Still, since we dont know exactly the full height and people can set the post limit to any number, I think it is safer to somehow clear the div so that it renders on a separate “row”.
Also, some other things to note:
- There’s a big gap between the news ticker and the next section (i.e. tabbed categories). I would like to make it smaller.
- Hard coded title (i.e. LATEST ARTICLES). Yes, I know I can change it directly but maybe a better idea is to have this as a theme option. The reason is because it all depends on what the website is used for. If a news site, ARTICLES may not be an appropriate word. The website may want this to be LATEST NEWS. Or if it was an opinion website, LATEST OPINIONS. Or if it was a cartoon website, LATEST CARTOONS. Hope you understand what I mean.
Since the ticker looks out of place not being at the top of the home page, I may just remove it as it is probably way too much work to get it integrated into the template.
You can see the change at my website KobashiComputing.com
-
This reply was modified 10 years by
kobashicomputing.
Hi
Making any changes in page’s layout may have secondary consequences and in some situations additional customizations may be required. I’ve made a quick test with given code and worked fine on my end but with a more complex structure for the page issues may occur.
As for LATEST ARTICLES title it can be changed from theme panel > translate section: http://screencast.com/t/bKBZeD2WbL
Thanks!