WP Nav Menu: String replacements

Why does this need to be done programmatically? WordPress’s menu editor lets you manually add a CSS class. If you aren’t seeing this option then look in the top, right of your screen for the “Screen Options” and click it so that it expands. Then check “CSS Classes”.

Add CSS Classes from Screen Options

Now add your custom class

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)