Anchor ID menu styling Resolved Requested: 3 years and 2 months ago I have a menu with anchor ids. Each item is to scroll to that section of the page. The ‘current’ item is styling all of the anchors instead of just the one anchor.
OnPoint Plugins 3 years and 1 month ago You may accomplish this by adding the following filter to your active theme’s functions.php file: <?php add_filter( 'advanced-sidebar-menu/menus/widget-instance', function ( $instance ) { $instance['keep_closed'] = 'checked'; if ( is_page() && (int) get_queried_object()->post_parent !== 0 ) { $instance['keep_closed'] = false; } return $instance; } ); Afterward, the widget setting will be ignored and be automatically set depending if you are on a child page or not.
Holly Butler 3 years and 1 month ago Getting this error when adding after other function in file. syntax error, unexpected ‘<‘, expecting end of file
OnPoint Plugins 3 years and 1 month ago This is mostly likely caused if there is an extra <?php tag being added because it’s after a previous one. Please try adding it without the <?php line.
You may accomplish this by adding the following filter to your active theme’s functions.php file:
Afterward, the widget setting will be ignored and be automatically set depending if you are on a child page or not.
Getting this error when adding after other function in file.
syntax error, unexpected ‘<‘, expecting end of file
This is mostly likely caused if there is an extra
<?php
tag being added because it’s after a previous one.Please try adding it without the
<?php
line.