Support » Fixing WordPress » Add Attirbute to Link

  • Hi I am trying to target an iframe with a set of links that I have created with a WP menu. These links will reveal a new gallery within aan iframe.

    Basically need to know if there is a way to add a target=”gallery” as opposed to the standard ‘_blank’ and ‘_self’ that comes with the target feature of new WP menus.

    Thx

Viewing 1 replies (of 1 total)
  • Thread Starter wireframe74

    (@wireframe74)

    Found this solution..most easiest of the lot after heaps of google searches which had all kinds of things related to modifying functions.php file etc :

    <?php add_link_attr('get_sidebar', '2',
    'target="gallery"'); ?>
Viewing 1 replies (of 1 total)
  • The topic ‘Add Attirbute to Link’ is closed to new replies.