-
AuthorPosts
-
February 5, 2015 at 7:35 am #391085
Hi Guys – I did a bit of searching before I decided to use your theme for this. I’d like to add custom post types to my site runnning the Enfold theme.
I have 2 custom post types
1. Places
2. PeopleI’d like the to have the places archive feed using this Enfold blog template
http://awesomescreenshot.com/01f4cbxndfI’d like to have the People archive feed using this Enfold blog template
http://awesomescreenshot.com/0db4cby21eCan you let me know if this is possible?
Also I’d like to include the Avia Layout Editor in the Custom Post Types.
Cheers
February 5, 2015 at 8:01 pm #391614Hi ShortieD!
See here for getting our settings to display on custom post types, https://kriesi.at/support/topic/add-builder-to-other-custom-post-types/.
And try adding this to the bottom of your functions.php file for the archive layouts.
add_filter( 'avf_blog_style', 'enfold_customization_archive_style' ); function enfold_customization_archive_style( $style ) { if ( is_post_type_archive( 'people' ) ) { $style = 'multi-big'; } if ( is_post_type_archive( 'places' ) ) { $style = 'single-small'; } return $style; }
Cheers!
ElliottFebruary 9, 2015 at 5:28 am #392866Thanks Elliott – I will give this a go and let you know how ti turn out. cheers
February 9, 2015 at 5:48 am #392868Thanks Elliott – brilliant this almost works – I just want to :
– get rid of the author avatar next to the post on the ‘places’ archive -have a look here.
– how do I change the title ‘archives’ to Places?see page here
http://sdtest.info/ntq/places/Cheers
February 9, 2015 at 1:56 pm #393047Hi!
Please add following code to Quick CSS
.post-type-archive-places .blog-meta, .post-type-archive-places .post_author_timeline { display: none; }
Best regards,
YigitFebruary 9, 2015 at 2:07 pm #393052Hi!
To change the archive title add at the bottom of functions.php:
add_filter('avf_which_archive_output', 'my_avf_which_archive_output', 10, 1); function my_avf_which_archive_output ($output) { if ( is_post_type_archive('places') ) $output = 'Places'; return $output; }
Try to use the following, if the code above does not work:
.archive .blog-meta { display: none !important; } or if you want it only on places archive
.post-type-archive-places .blog-meta {
display: none !important;
}
`Best regards,
GünterFebruary 11, 2015 at 4:48 am #394120For this one
.post-type-archive-places .blog-meta, .post-type-archive-places .post_author_timeline {
display: none;
}It worked and I also added
.big-preview {
padding: 0 50px 10px 0px;
}to make the featured image flush against the left of the page
– the code to replace Archives worked and I also added this for the other Custom Posts types to=.
Thanks guys
February 11, 2015 at 12:18 pm #394252 -
AuthorPosts
- The topic ‘Custom post types to look like small and large Enfold Blog feed’ is closed to new replies.