-
AuthorPosts
-
April 3, 2018 at 1:20 am #8971
Selahattin Uzun
GuestHello again,
I am using “0 sidebar layout” as default layout with frontier and elementor pro.
I want to make custom single post template in frontier with or without elementor.
For example
I want to Single Post Template with 3 colums without any widget.
Basically,
Is it possible to make template that could be used as default single post layout with 3 colums without plugin?
or
How can I do this with plugin?
Many thanks for your helping.April 4, 2018 at 1:33 am #8972Ron
KeymasterYou can copy/make your own page template then rename the file as singular.php
It would then be the default template used for single posts.April 5, 2018 at 6:17 pm #8973Selahattin Uzun
Guestyou know, I want to use no sidebar as deafult layout on the site
at the same time, I want “2 sidebar, full width” layout for single posts
I tried to make what you said
my goal is to try, left sidebar + single post content + right sidebar
I registered the template save as “special-post-template.php”
and sent it to the frontier folderThe template content is as follows:
<?php
/*
Template Name: Special Post Template
Template Post Type: post
*/
?><?php get_header(); ?>
<?php get_sidebar( ‘left’ ); ?>
<?php
the_post();
get_template_part( ‘loop’, ‘single’ );
?><?php get_sidebar( ‘right’ ); ?>
<?php get_footer(); ?>
but, the view on the page has not been side by side
I was not able to prevent the following page viewleft sidebar
single post content
right sidebar.it is very difficult for me, which is very easy for you
but it’s quite exciting to learn these steps for me
I’m trying to understand the basically
If the explanation will be long and it will take a lot of time for you, or if it is a very complicated situation,
Please do not respond
thank you very much for your understanding
🙂
April 5, 2018 at 11:06 pm #8974Ron
KeymasterTry this:
Rename the file you created “special-post-template.php” to “singular.php”
Then add this to the customizer -> additional css:#main { display: flex; } #main #content { order: 2; } #main #sidebar-left { order: 1; } #main #sidebar-right { order: 3; }
Caution: Just in case you don’t know. If you’re not using a child theme your changes will be deleted when the theme is updated.
April 6, 2018 at 3:21 pm #8977Selahattin Uzun
GuestHello
I added and it is ok.
Yes. I know I am using direct frontier theme instead of child theme.
I will back to child theme again.
I think,
WordPress and frontier installed on my site damaged due to my trials since beginning.
And
My site need to reconstruction with a clean installation in same conditions.
But
I needed to these steps to learn and understand a few basic knowledge like these.
I will to reconsruction my site on nearest time.
I am so sorry for my english.
I know it is not enough.
İt is really that The Frontier theme is great, great, great theme
And
You are very special person for Wordpres and Frontier Users.
Thank you very much for your efforts for Frontier Theme and users.
Many thanks for your helping again. -
AuthorPosts
- The forum ‘Frontier’ is closed to new topics and replies.