Support » Plugin: Spots » Inserting spot code like link in template hardcode

  • Hi,

    first of all – i want to thank you for this awesome plugin, it makes some things really easy for me to set it for end client.

    But – i can’t figure out, how to do this:

    In my template file header.php i have in header this code:

    <a href="mailto:email@email.com" target="_blank"><li class="mail">Contact us</li></a>

    note: i need to have ‘<a href’ before ‘li’ becouse i’m using negative text-indent to hide text itself and replace it with icon.

    And i want just the e-mail adress to be dynamic so client can simply change adress itself somewhere in admin menu. But when i use this:

    <a href="<?php if (function_exists ('icit_spot')) icit_spot ('Top-line-email'); ?>" target="_blank">

    Where ‘Top-line-email’ is the name of my Spot with only ’email@email.com’ in it – it really break my code. First at all – it inserts <p> inside of <a href … value, so it can’t work. And it puts “edit” div also.

    This is the output in my code then:

    <a href="<div class="icit-spot-content"><div class="icit-spot-edit-link-holder"><a class="icit-spot-edit-link" href="http://oriongroup.jabbo.cz/wp-admin/post.php?post=37&post_type=spot&action=edit">Edit Spot</a></div>email@email.com</div>" target="_blank"><li class="mail">Napište nám</li></a>

    Is there a way to use Spots just like a holder of clear unformated text so it won’t put any other <divs> and tags?

    Thanx

    http://wordpress.org/extend/plugins/spots/

  • The topic ‘Inserting spot code like link in template hardcode’ is closed to new replies.