-
AuthorPosts
-
May 1st, 2020 at 19:26 #102198
Hi.
In my child theme, I want to:
Move the Frontpage text area div “front-text3” above the Frontpage columns, but below the Second FrontPage title div “front-text2”.
How do I do this?
.\ Lars Olsen
Website: redzoneracing.no
May 2nd, 2020 at 13:58 #102234ZedCryout Creations mastermindThe order of the presentation page sections is not configurable. The task can be achieved only by modifying theme code (look for mantra_frontpage_generator() in includes/theme-frontpage.php; this function is pluggable and can be customized in a child theme).
If you like our creations, help us share by rating them on WordPress.org.
Please check the available documentation and search the forums before starting a topic.May 2nd, 2020 at 14:28 #102256Hi Zed!
You say that the order of the presentation page sections is not configurable.
But then you say that mantra_frontpage_generator is pluggable, and can be customized in a child theme.
I’m afraid you lost me there.
I’m already using a working child theme from before.
Now I’ve tried the following:
Copy: themes/mantra/includes/theme-frontpage.php
To: themes/mantra-child/includes/theme-frontpage.phpThen cut line 170, and pasted it to line 143.
I might be wrong, but I thought this would achieve my goal.
Could you please guide me in some more detail?
May 31st, 2020 at 19:56 #103424ZedCryout Creations mastermindBy configurable I am referring to “configurable through the options”.
With WordPress, “pluggable” means you can copy that entire function to the child theme (in the functions.php file or a separate file that gets included) and then you can customize it there.
Some of the files present in the theme are not automatically picked up by WordPress if they are duplicated in the child theme. Everything in the includes/ folder falls in this category.
If you like our creations, help us share by rating them on WordPress.org.
Please check the available documentation and search the forums before starting a topic. -
AuthorPosts
The topic ‘Mantra: Frontpage text area above columns’ is closed to new replies.