-
AuthorPosts
-
November 6, 2020 at 6:33 pm #1258936
There is any way to make pages have the same layout as the native blog post?
I just want to show the big preview and the default title on pages that arent using adv layout builder.
Its possible?Best
- This topic was modified 3 years, 11 months ago by emanar.
November 6, 2020 at 8:39 pm #1258960Hey Rafael,
Why not use the classic editor then?
Best regards,
VictoriaNovember 6, 2020 at 9:17 pm #1258961hello, i’m using the classic editor.
But the page template doesn’t give me the option to show the preview image or the title.
I sent in private 1 example of the post and 1 of the page. As you can see the first image and title on page, are placed in the classic editor. And in the post it automatically pulling the data from the post.I would like the page template to behave like the post template.
tksNovember 9, 2020 at 11:07 pm #1259417I just find out that i was hiden the preview image.
So now i need to add the title on the pages.
I found this code that does the job, but adds after the preview image. I would like to add before it.
it’s possible?/ **
* add title to non-home pages
* /function my_the_content_filter ($ content) {
if (is_page () &&! is_front_page ())
{
$ content = ‘<h1>’ .get_the_title (). ‘</h1>’. $ content;
}
return $ content;
}
add_filter (‘the_content’, ‘my_the_content_filter’);best
November 9, 2020 at 11:33 pm #1259421I found a way to achieve what I want:
https://kriesi.at/support/topic/move-page-title-out-of-band-out-of-the-header-and-into-the-content-area/#post-436221is it possible to make this modification directly in function.php?
Best
November 10, 2020 at 9:24 pm #1259659Hi emanar,
If you use the Classic editor for the posts you get all that, pages are not meant to function like posts and so they do not look the same. Why do yo uneed them to be the same?
Best regards,
VictoriaNovember 10, 2020 at 10:50 pm #1259680We are a news website and sometimes for SEO, we need to do a post without a category. Like domain.com/name. And to do that on WordPress the article needs to be a page. So sometimes we do post in the page area.
November 11, 2020 at 9:28 pm #1259960Hi emanar,
The image and the title can be added with the Advanced Layout Builder elements without editing files but will look a bit different.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.