Anchor ID’s to categories
-
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)
Viewing 1 replies (of 1 total)
- The topic ‘Anchor ID’s to categories’ is closed to new replies.