Advertisement
nicolaslagios

WORDPRESS, ADD CUSTOM TARGET TO LINKS OF SPECIFIC MENU ITEMS

Apr 24th, 2019
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1. function nav_replace_wpse_189788($item_output, $item) {
  2.   if ('<- Πίσω στο BrandsMall' == $item->title) {
  3.     global $my_profile;
  4.     return '<a href="https://brandsmall.shop/" target="_top">&lt;- Πίσω στο BrandsMall</a>';
  5.   }
  6.   return $item_output;
  7. }
  8. add_filter('walker_nav_menu_start_el','nav_replace_wpse_189788',10,2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement