Question

Photo of Dan Abbuhl

0

Can you make the Homepage - Rotator pictures NOT CLICKABLE?

I like the homepage picture rotator but only want to make this for pictures and not really events that someone would click on.    Only rotating pictures from services, not clickable links.

Is there any way to make them so that they are only seen and not something that can be clicked on?

  • Photo of Michael Garrison

    0

    Dan,

    The default contents used to display the ad rotator is {% include '~~/Assets/Lava/AdRotator.lava' %}

    This means that the full Lava can be found in a file on your web server: look under Themes\Stark\Assets\Lava and you should see AdRotator.lava

    The contents of this file are as follows:

    <div id="announcement-rotator" class="carousel slide" data-ride="carousel">
      <!-- Wrapper for slides -->
      <div class="carousel-inner">
        {% for item in Items %}
        {% if forloop.index == 1 -%}
        <div class="item active">
          {% else -%}
          <div class="item">
            {% endif -%}
            <a href="{{ LinkedPages.DetailPage }}?Item={{ item.Id }}">{{ item | Attribute:'Image' }}</a>
          </div>
          {% endfor %}
        </div>
    
        <!-- Controls -->
        <a class="left carousel-control" href="#announcement-rotator" data-slide="prev">
          <span class="fa fa-chevron-left"></span>
        </a>
        <a class="right carousel-control" href="#announcement-rotator" data-slide="next">
          <span class="fa fa-chevron-right"></span>
        </a>
    
      </div>

    So delete the default contents and paste in these codes instead.

    Now just above halfway down, delete <a href="{{ LinkedPages.DetailPage }}?Item={{ item.Id }}"> and </a>. So that line should now ONLY have {{ item | Attribute:'Image' }}

    That should be all it'll take!