Forum Replies Created
-
AuthorPosts
-
January 25, 2019 at 12:58 pm in reply to: Get the static front page to show entry title and content using Workstation Pro #467678
DesignOlah
MemberMy original goal was to add page title and page content to the front-page.php (using Workstation Pro) in place of the site description that shows up at the top of the page by default. But I settled for hard coding the text I wanted into the front-page.php file on line 18, like so:
$description = sprintf( '<h2 class="site-description">%s</h2><p class="home-top-text">Insert line of custom text here.</p>', $inside );
If anyone stumbles upon this thread and wants to offer a solution for my original goal, I'd love to hear it. Thanks!
January 18, 2019 at 11:22 am in reply to: Get the static front page to show entry title and content using Workstation Pro #345669DesignOlah
MemberOk, I see. Thank you Victor. I was using terminology based on the Reading Settings page, but seeing as how I am using front page widgets, I understand now my terminology was wrong. I am using front page widgets, therefore as you said, I must be using front-page.php.
With that sorted, is it possible to add a page entry title and page entry content (from one particular page) to the front page? If not, I'll find a different solution.
Thank you.
January 17, 2019 at 3:25 pm in reply to: Get the static front page to show entry title and content using Workstation Pro #333272DesignOlah
MemberI am using a static front page in that I am not displaying blog posts. I am also using the front page widgets included by default in the Workstation Pro theme. In other StudioPress Genesis themes that I have worked with, there was a spot on the homepage for page title/content in addition to the front page widgets. But Workstation is not displaying page content anywhere on the front page. I'd like to add it.
I am not looking to add the site description, as you said. Workstation Pro includes the site description on the front page by default. I am wanting to replace the site description with the page title (entry-title). Then add a spot right under the page title for the page content. I want to keep all the front page widgets intact.
I am confident enough to edit the PHP files. I do it all the time. I was just looking for directions on how to achieve this.
lines 13-22 on front-page.php have code for "// Filter the homepage site description." If I replaced that chunk with code for adding in the page title and page content, would that work?
-
AuthorPosts