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

EKM Tag: [ekm:searchlink]

This tag outputs a HTML link which links to the search page.

  • Tag Information
  • Nesting This Tag
Basic Use
This tag can be placed anywhere within the HTML and will output a simple HTML link. This link's text can be changed from the "Design" section of your EKM account.

[ekm:searchlink][/ekm:searchlink]
                                
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">
   .searchlink-button a {
         color: #fff;
         padding: 5px 10px;
         background: #fc329c;
         border-radius: 2px;
         font-size: 14px;
         text-decoration: none;
    }
</style>

<span class="searchlink-button">[ekm:searchlink][/ekm:searchlink]</span>
                                
This would output the button with styling as shown below.
Search

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">';
    output_item='<li><a href="[url]" class="normal">[page_title]</a></li>';
    output_end='
            <li>[ekm:searchlink][/ekm:searchlink]</li>
        </ul>
    ';
[/ekm:show_webpages]