Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #702967

    Hi,
    Thank you for enfold & such and awesome support team.

    I just wanted to know is it possible to display the categories name above the title in accordion slider? See the image below-

    View post on imgur.com

    Please let me know how can I achieve this.

    Thanks,
    Ismail

    #702985

    Hey Ismail,

    Yes, you can achieve it by going to enfold\config-templatebuilder\avia-shortcodes\slideshow_accordion.php and find this code (line 655):

    $output .= !empty($slide->post_title) ? "<h3 class='aviaccordion-title' {$markup_title} {$title_style}>".$slide->post_title."</h3>" : "";

    Above it kindly add this code:

    $output .= !empty(get_the_category( $slide->ID )) ? "<h2 class='aviaccordion-category-title'>".get_the_category( $slide->ID )[0]->name."</h2>" : "";

    Let us know if it works :)

    Best regards,
    Nikko

    #703016

    Yes, It worked. Just changed h2 tag to p tag. Thank you Nikko.

    #703059

    Hey!

    Happy we could help.
    Please feel free to let us know if we can do anything else for you.

    We appreciate also if you could rate our theme.

    Cheers

    Cheers!
    Basilis

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Display categories name with the title in accordion slider’ is closed to new replies.