Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #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.

    #338646
    This reply has been marked as private.
    #339297

    Hey!

    The link you posted is returning a 404 not found page.

    Regards,
    Josue

    #339307
    This reply has been marked as private.
    #339323

    Hi,

    Can you please create us an administrator account? post it here as a private reply.

    Regards,
    Josue

    #339327
    This reply has been marked as private.
    #339335

    Hi!

    Can you enable file editing or provide a FTP account so i can edit the child theme files?

    Regards,
    Josue

    #339560

    I have now enabled file editor.

    Cheers,

    #339608

    Hi,

    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!
    Josue

    #339647

    Perfect, exactly what I wanted.

    Thanks!

    #339649

    I 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.

    #339694

    Hey!

    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,
    Josue

    #339734

    Perfect.

    Thank you!

    #339748

    You are welcome, glad to help :)

    Regards,
    Josue

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.