Jump to content

How can I make hover over a combination and obtain text? [SOLVED]


monicaamb

Recommended Posts

5 hours ago, JBW said:

In classic theme thats done by html title attribute, might be missing in your theme. If you want to have a more prominent popup you have to use javascript or use a module like my "Attribute price and availability display module" (requires the title attribute to work properly)

And why don't you please advise how to edit it in the template? After all, it's that simple and just add alt="".

Everyone wants to pay that much unchristian money for 20 words in a template.

The forum is mainly about free help and not as commercial ads!

Edited by 4you.software (see edit history)
Link to comment
Share on other sites

On 11/19/2022 at 11:20 AM, endriu107 said:

It is hard to help if we do not see your store, please share url.

https://raylupaper.com/

https://raylupaper.com/es/agendas-escolares-2022-2023/42-605-agenda-escolar-campus-a5-curso-2022-2023-dia-por-pagina-8436604541670.html#/4-estilo_agendas-azul_university

Edited by monicaamb (see edit history)
Link to comment
Share on other sites

In custom.css file change this:

.sr-only {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

to this:

.sr-only {
    border: 1px solid #aaa;
    clip: unset;
    height: auto;
    margin: -1px;
    overflow: hidden;
    padding: 4px;
    position: absolute;
    width: 128px;
    text-align: center;
    top: -35px;
    left: -50%;
    background: #fff;
    display: none;
}

and below add this:

span.color.texture:hover .sr-only {
    display: block;
}

 

Link to comment
Share on other sites

3 hours ago, 4you.software said:

And why don't you please advise how to edit it in the template? After all, it's that simple and just add alt="".

Everyone wants to pay that much unchristian money for 20 words in a template.

The forum is mainly about free help and not as commercial ads!

Thank you very much, you are totally right.

I tried to put alt="" in product-variants.tpl but I am not sure where I must put it. I will try also what endriu107 advises me.

I attach you the archive.

Thank you in advance.

product-variants.tpl

Edited by monicaamb (see edit history)
Link to comment
Share on other sites

6 minutes ago, monicaamb said:

Thank you very much, you are totally right.

I tried to put alt="" in product-variants.tpl but I am not sure where I must put it. I will try also what endriu107 advises me.

I attach you the archive.

Thank you in advance.

product-variants.tpl 3.26 kB · 0 downloads

It is solved now. Thank you very much for your support.

This forum needs people as you!

Edited by monicaamb (see edit history)
Link to comment
Share on other sites

11 minutes ago, endriu107 said:

In custom.css file change this:

.sr-only {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

to this:

.sr-only {
    border: 1px solid #aaa;
    clip: unset;
    height: auto;
    margin: -1px;
    overflow: hidden;
    padding: 4px;
    position: absolute;
    width: 128px;
    text-align: center;
    top: -35px;
    left: -50%;
    background: #fff;
    display: none;
}

and below add this:

span.color.texture:hover .sr-only {
    display: block;
}

 

That's work. Thank you so much, you fix my problem!!!

  • Like 1
Link to comment
Share on other sites

  • monicaamb changed the title to How can I make hover over a combination and obtain text? [SOLVED]
  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...