display top label course categories on course page only

Support Forums for LiveMesh Themes & Plugins Forums Invent Theme Support display top label course categories on course page only

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #28288
    Sujoy Banerjee
    Participant

    within the course categories i have created some child categories but on the course page i need to display only the top label categories . currently its showing both the parent and child categories on the course page

    see screenshot for reference :

    #28310
    Veena
    Moderator

    Pls try the below custom CSS in themeoptions –

    .page-id-5473 #showcase-links li:nth-child(3) {
        display: none !important;
    }
    

    you need to replace 5473 with your page id.

    #28334
    Sujoy Banerjee
    Participant

    as a matter of fact , there are total 19 adding the parent and child categories but its showing only the first 5 categories . need to show all the parent categories from the course, that will be total 8 .

    see screenshot for reference :

    Also as a matter of fact , its showing only the child category of the 1st parent which is ‘Basic & Applied Scrience’ and not for the other parent categories

    #28336
    Sujoy Banerjee
    Participant
    This reply has been marked as private.
    #28337
    Sujoy Banerjee
    Participant

    nevermind, things got solved

    within framework/functions/post-functions.php @ line no 950 under
    function mo_get_post_type_archive_links($post_type, $taxonomy),

    i need to replace

    $terms = get_terms($taxonomy);

    with

    $terms = get_terms( array(
                    'taxonomy' => $taxonomy,
                    'parent'   => 0,
                    'hide_empty' => false,
                ) );

    because the terms that have no posts are hidden by default and also have to send the 'parent' => 0 as parameter so that it fetches only the parent terms from db

    #28344
    Sujoy Banerjee
    Participant

    ok now that only the parent course categories are being displayed , can u provide some custom responsive css to make these looks better, eye catching on both desktop and mobile devices .
    currently it looks too weird specially on mobile devices

    see screenshots:

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘Invent Theme Support’ is closed to new topics and replies.