Before you ask please READ THIS

caption in mobile

edited March 2016 in Photon Posts: 1
Hi, great theme man!!!
I need to invert plus/minus button for caption in mobile version.
When I load page i need to show text and when I click on "minus" i need to hide it.
How can I do that?

If I use this code below I can show text at the beginning but then I can't hide it

@media only screen and (max-width: 768px) {
.slide-caption h2.title,
.slide-caption .description{
display: block;
}
}
Thanks


Post edited by Air on

Comments

  • AirAir
    Posts: 10,970
    Hello there:-)
    apelissetti said: I need to invert plus/minus button for caption in mobile version.
    Why would you do that? It sounds misleading.

    Anyway go to photon-a13\js\a13-slider.js line ~1902
    and swap + and - in these lines :
    toggle.removeClass('open').text('+');
    toggle.addClass('open').text('-');

    also in same file line ~1424 swap + with - in this line:
    '<div class="texts-opener">+</div>' +
    (First + that is inside div).

    With kind regards.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion