-
AuthorPosts
-
October 20, 2014 at 9:18 pm #338644
Hello, I have successfully arranged for a custom template file within my child theme which I can customize for my custom taxonomies within a specific custom post type. The issue that I am having is that using the Avia Layout Builder on this custom post type it seems to output everything as is on the taxonomy template.
As in these particular post types I am making heavy use of google maps and other shortcodes (including some columns in the layout) the custom template that I am using (which is a copy of archives.php) is outputting everything as per the avia layout builder.
I would like to output a trimmed down version of the entries instead (perahps title and excerpt with its featured image) so that it looks more like the blog listing instead of how it looks right now where it is just outputting all the contents of the entry. How can this be achieved?
Thanks.
October 20, 2014 at 9:19 pm #338646This reply has been marked as private.October 22, 2014 at 1:23 am #339297Hey!
The link you posted is returning a 404 not found page.
Regards,
JosueOctober 22, 2014 at 2:05 am #339307This reply has been marked as private.October 22, 2014 at 3:28 am #339323Hi,
Can you please create us an administrator account? post it here as a private reply.
Regards,
JosueOctober 22, 2014 at 3:40 am #339327This reply has been marked as private.October 22, 2014 at 4:05 am #339335Hi!
Can you enable file editing or provide a FTP account so i can edit the child theme files?
Regards,
JosueOctober 22, 2014 at 4:57 pm #339560I have now enabled file editor.
Cheers,
October 22, 2014 at 5:52 pm #339608Hi,
Check your archive page now, i added this to child functions.php:
function change_blog_archive_style() { global $avia_config; if(!is_single()){ $avia_config['blog_content'] = "excerpt_read_more"; } } add_action('get_header', 'change_blog_archive_style');
Cheers!
JosueOctober 22, 2014 at 6:32 pm #339647Perfect, exactly what I wanted.
Thanks!
October 22, 2014 at 6:35 pm #339649I just noticed that this is affecting all entries and not just this taxonomy’s template.
Is there a way to ensure this only applies to this particular taxonomy?
Thanks.
October 22, 2014 at 7:37 pm #339694Hey!
Can you check it now? i edited the code to use the is_tax function:
if(!is_single() && is_tax('dir')){ $avia_config['blog_content'] = "excerpt_read_more"; }
Regards,
JosueOctober 22, 2014 at 8:40 pm #339734Perfect.
Thank you!
October 22, 2014 at 9:33 pm #339748You are welcome, glad to help :)
Regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.