Community Forums › Forums › Archived Forums › Design Tips and Tricks › How add some text into front-page and blog-pages?
Tagged: blog posts, category page, front page, text-elements
- This topic has 6 replies, 2 voices, and was last updated 7 years, 2 months ago by Dan-cer.
-
AuthorPosts
-
January 12, 2017 at 4:47 am #199258Dan-cerMember
Hello,
my child theme is LiveStyle Pro.
As my topic-title show I have a front-page with recent blog-posts, and I have category-pages with only blog-posts of certain categories.
1. question: Which template should I use for front-page? And which for the category-pages? At the moment I'm using the "Blog"-template for all of them.
2. question: How can I add text-elements, text-boxes or similar to these pages? On front-page I want to add a welcom-title and a slogan above the recent post-excerpts.thank you for your answers!
January 12, 2017 at 6:00 am #199259Victor FontModeratorIn a typical Studio Press theme, you do not use static front page. Therefore, in this sense there is no front page template. There is however a widgetized front-page.php. If you are not using a static front page, the widgetized front page takes control as soon as you add a widget to it. The Lifestyle Pro front-page.php does not display blog posts. If you want blog posts on the front page, just use the blog template. If you want blog posts and widgets, you have to create your own template or modify front-page.php.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?January 12, 2017 at 6:46 am #199266Dan-cerMemberI'm using a static pront page and also static category-pages. The reason is to be able to display individual headers for each category. To link these pages with categories, I use as custom fields
query_args cat=xy
When creating or editing a page I can chose one of 4 templates: Standard-template, Blog, Archive and Landing.
With using widgets there is the problem that I'm using special widget-title-backgrounds that don't fit. I need to have H1 - title and a text-box for an introduction, for example.
For the category-pages I could use a modified standard-template, where it is implemented a code-snipped for loop (posts), right?
For the front-page it should be the other way. Loop is already there, now I need an area for other elements.
I tried the siteorigin plugins for that. They provide adding either such elements or a blog element on any page. But that plugin is slowing down the admin-page and isn't close to genesis.
If there is nothing else I could work with it again.best regards
RainerJanuary 14, 2017 at 5:34 am #199372Dan-cerMemberI got this code to add into the functions.php:
add_action( 'genesis_loop', 'genesis_standard_loop', 5 );
That works for my front-page now. I can add some text to it as I want.
But now I found out that in other static pages, for example the FAQ-page, all content is doubled. After removing the code shown above normal view is there again.
How could I change that?
Something to modify in the code?January 17, 2017 at 9:01 am #199554Dan-cerMemberNow I could solve the problem by using widgets not only for text before post-excerpts but also for them: Genesis - featured posts.
January 17, 2017 at 9:08 am #199555Dan-cerMemberI solved this problem by using Widgets for text AND post-excerpts (Genesis - featured posts).
January 17, 2017 at 10:22 am #199559Dan-cerMemberI solved it by working with widgets for text AND recent blog-posts. To have blog-excerpts as I want I'm using "Genesis featured posts" widget now.
-
AuthorPosts
- The topic ‘How add some text into front-page and blog-pages?’ is closed to new replies.