Speak to our experts today 0333 004 0333
Speak to one of our experts today
User Guides

EKM Tag: [ekm:mainsitelink]

This tag outputs a HTML link which goes to your existing site. This can be specified in the backend of your EKM under settings. The text on this link can also be changed in the "Design" section of your account.

  • Tag Information
  • Nesting This Tag
Basic Use
This tag can be placed anywhere within the HTML and will output a simple HTML link.

[ekm:mainsitelink][/ekm:mainsitelink]
                                
Within HTML
The link is output by default as a simple HTML link, if you wished to target this link to apply CSS styling you could target the link in the same way the below example does.

<style type="text/css">
   .mainsitelink-button a {
         color: #fff;
         padding: 5px 10px;
         background: #fc329c;
         border-radius: 2px;
         font-size: 14px;
         text-decoration: none;
    }
</style>

<span class="mainsitelink-button">[ekm:mainsitelink][/ekm:mainsitelink]</span>
                                
This would output the button with styling as shown below.
Return to Main Site

The EKM system allows for some tags to be nested within other tags.

Nesting This Tag

When nesting this tag you do not need to make any changes to it. It can be inserted into other tags like below.


[ekm:show_webpages]
    output_start='
        <ul id="extra-page-nav">
            <li>[ekm:mainsitelink][/ekm:mainsitelink]</li>
    ';
    output_item='<li><a href="[url]" class="normal">[page_title]</a></li>';
    output_end='</ul>';
[/ekm:show_webpages]