• Resolved Pixelbits

    (@pixelbits)


    I’d like it very much if it where possible to directly link to a FAQ-category in a page. If you’d add the term-id to accordion.php it would already work.

    This way I can create an anchor to that specific category, and I can style background-colors per category too.

    Could you add this in a next version?

    
    public function get_titled_view($props, $collectionProps ){
                $html = '';
    
                for ($ii = 0; $ii < sizeof($props); $ii++) {
                    $html .= "<h3 id=helpiefaqcat-".$props[$ii]['term_id']." >" . $props[$ii]['title'] . "</h3>";
                    if( $this->show_cat_field('description', $collectionProps) ){
                        $html .= "<p>" . $props[$ii]['content'] . "</p>";
                    }
    				$html .= $this->get_accordion($props[$ii]['children'],$collectionProps);
                }
    
                return $html;
            }
    
Viewing 1 replies (of 1 total)
  • Hi There,

    Thank you for reaching out to us.

    As mentioned in the other thread, the anchor link to the categories will work in “Category Accordion” display mode alone for now.

    You can just change the display_mode to “category accordion” in the settings and the anchor link would be displayed for categories.

    We would give an option for it to be displayed in the “Simple accordion by category” display mode also in the future. I will make sure to let you know once this is pushed up. Thanks much for the catch.

    Kind Regards.

Viewing 1 replies (of 1 total)
  • The topic ‘Anchor ID’s to categories’ is closed to new replies.