0
Welcome Guest! Login
0 items Join Now

SOLVED Logo particle url target _blank

    • Laurent's Avatar
    • Laurent
    • Hero Rocketeer
    • Posts: 445
    • Thanks: 1

    SOLVED Logo particle url target _blank

    Posted 8 years 3 months ago
    • Hello, i would like to add a target="_blank" for url in the logo particle, i think it is here
      {% extends '@nucleus/partials/particle.html.twig' %}
      
      {% block particle %}
          {% set url = url(particle.url)|default(gantry.siteUrl()) %}
          {% if (url == gantry.siteUrl()) %}{% set rel='rel="home"' %}{% endif %}
          {% set class=(particle.class ? 'class="'~ particle.class ~'"') %}
      
      <a href="{{ url }}" title="{{ particle.text }}" {{ rel|default('')|raw }} {{ class|default('')|raw }}>
          {% set image = url(particle.image) %}
          {% if image %}
          <img src="{{ url(particle.image) }}" alt="{{ particle.text }}" />
          {% else %}
          {{ particle.text|default('Logo') }}
          {% endif %}
      </a>
      {% endblock %}
      
      but i don't know how do that ?

      Thanks.
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: SOLVED Logo particle url target _blank

    Posted 8 years 3 months ago
    • Laurent's Avatar
    • Laurent
    • Hero Rocketeer
    • Posts: 445
    • Thanks: 1

    Re: SOLVED Logo particle url target _blank

    Posted 8 years 3 months ago
    • Yes thank you, I had already done that, maybe it would be nice to add this option in the particle :)

Time to create page: 0.062 seconds