New answers tagged

0

When I go to the dashboard>settings>permalinks and click save changes, this code disappears It sounds like WordPress is overwriting your htaccess file when you save. Thus, your changes are gone. Perhaps set this up outside of the htaccess in the apache config? Or ask your host to do this for you. Then WP can't overwrite it :)


1

one problem exists there... Wordpress has built-in page detection, to give the CSS classes to current page in menu... and if cached, then your navigation menu-items will never get "current-page" class or etc.. however, there are 2 solutions: Solution 1 Before caching, once, add classes to <a> items: function add_menu_atts( $atts, $item, $args ) { ...



Top 50 recent answers are included