Hi @annaryker
Do you mean that collapse and uncollapse icons are not visible on the frontend? Or something else? Please confirm. A screenshot would be helpful to understand.
-
This reply was modified 2 years, 8 months ago by
Achal Jain.
Thread Starter
A.T.
(@annaryker)
Hi @ibachal . Yes, they do not display on the front-end. I’ve tried different settings, no change. I’ve checked my css code to see if that was the issue, it is not.
Here’s a screenshot.
The toc does collapse when you click the title, but I would like the buttons to be visible so people know it can be collapsed.
-
This reply was modified 2 years, 8 months ago by
A.T..
@annaryker Looks like the dashicons library is not getting enqueued on the frontend on your site. Are you using any optimization plugin and excluded dashicons CSS file from getting enqueued? Or is there any specific code added anywhere?
You can try adding the below code to your current theme’s functions.php file and see if it works:
// Enqueue Dashicons to load on the front-end
add_action( 'wp_enqueue_scripts', 'dashicons_front_end' );
function dashicons_front_end() {
wp_enqueue_style( 'dashicons' );
}