Home › Forums › Pro Themes › Construction Base Pro › Post Format
- This topic has 3 replies, 2 voices, and was last updated 6 years, 11 months ago by wensolutions.
-
AuthorPosts
-
November 29, 2017 at 12:32 am #59318tarek-elnazerParticipant
I need to have some posts without the line containing the post date/author/tags .
how can i achieve this ?
Note: i can set this for each specific post but it would be better if this can be linked to a tag or category
Note 2: i read about the “Post Format” feature .. is this feature supported by your theme ? if so how to use it or enable it ?
November 29, 2017 at 2:04 am #59325wensolutionsKeymasterHello @tarek-elnazer,
To remove the meta info in the single post of specific category, we need category class but category class does not appear in the body of single post .
However we can insert the class using the child theme and use that class for CSS to remove the meta option for that category .
For this activate the child theme . You can even activate the child theme using the plugin given below:
https://wordpress.org/plugins/wp-child-theme-generator/
After activating the child theme in your child theme functiosn.php paste below given code :
https://gist.github.com/anonymous/50c8dc925e0ee0958a5129c1056c0879
After this you will find the category slug in single post when inspecting in single post page .
Screen Shot :
https://image.prntscr.com/image/AZ23-HTFRmGqadmOpeVbYg.png
Noe paste below given CSS in Admin Panel > Appearance > Customize > Additional CSS replacing the class “.category-fruits” with the class that you get upon inspecting your single post :
.single .category-fruits .entry-meta { display: none; }
As for the post format, theme has provided multiple layout /post format in the theme which you can find in Customize > Theme Options > Layout Options .
Hope this helps .
Best Regards!!
November 29, 2017 at 7:51 pm #59400tarek-elnazerParticipantThank you for the suggested solution
I understand the solution and it is a complete one but maybe little bit more than what i need: for now i don’t want to use child themes– is there a way to create a layout without the mentioned parts and will assign it per post?
——
what i really need is to setup the slider to automatically show some contents to add to it without changing the slider setting.
I find that the only way is to base the slider on post category or on post tag, but my problem is that i want the posts to look like a page without the extra post infomation (date, author, comments, …. )
Any easier way to achieve the same ?November 30, 2017 at 2:20 am #59432wensolutionsKeymasterHello @tarek-elnazer,
Yes you can turn off the meta field in individual post through the use of custom CSS but the process will be tedious as you need to add custom CSS for each individual post using the ID .
If you still want to follow this approach then you need to add below given CSS in Admin Panel > Appearance > Customize > Additional CSS .
.single.postid-3045 .entry-meta { display: none; }
For other post you just need to simply add this CSS by replacing the ID with the ID of that Post .
Hope this Helps .
Best Regards!!
-
AuthorPosts
- You must be logged in to reply to this topic.