Under the theme settings, I have "Use the name as heading in pages (default template)" checked. However, I'd like to hide the title on the home page but display the remaining titles on all of the other pages. Any ideas on how to achieve this? Thanks.
Hiding the heading on the home page
(5 posts) (2 voices)-
- ChuckPosted 1 year ago #
-
in page.php you can change:
if (in_array('pageHeading', $bf_misc))to:
if (in_array('pageHeading', $bf_misc) && !is_front_page())btw, you can copy this php file into a child theme so the modification will not be lost when upgrading...
Posted 1 year ago # -
I'm using the bfwide theme so should would you suggest adding as a function?
Posted 1 year ago # -
you can just copy the page.php file into the child theme folder and edit it there. I see no point to create a function. you can also create a new page template and copy the code from page.php, but remove the line with the the_title() call.
Posted 1 year ago # -
Excellent, thanks!
Posted 1 year ago #
Reply
You must log in to post.