Support

Home Forums Event Espresso Premium How to customize Grid Template to display event details by default? (2)

How to customize Grid Template to display event details by default? (2)

Posted: May 31, 2016 at 4:40 am


tonitarres

May 31, 2016 at 4:40 am

I need display event details text by default. Now, the text only appears when the mouse is over.
Can you help me please!

Thanks


Lorenzo Orlando Caum

  • Support Staff

May 31, 2016 at 11:19 am

Hello,

Try this CSS for changing the styling:

.ee_grid_box img {
opacity: 0.4; 
}

.ee_grid_box span {
position:absolute;
top:5px;
color:#000;
left:10px;
right:10px;
opacity:0;
}

.ee_grid_box a.darken span{
	color:#fff;
    -webkit-transition: all 0.5s linear;
       -moz-transition: all 0.5s linear;
        -ms-transition: all 0.5s linear;
         -o-transition: all 0.5s linear;
            transition: all 0.5s linear;
	opacity:1;

}

If your theme has a Custom CSS area built-in, then you can add it there through your WP dashboard. Otherwise, you could use a free plugin that adds an additional stylesheet to your WordPress site such as Simple Custom CSS or Reaktiv CSS Builder.

You can then go back to your site and refresh the page with the grid on it to see the new changes.


Lorenzo


tonitarres

May 31, 2016 at 4:07 pm

Thanks, but with this css code, I view a black box only. I need veiw directly the text that I see when mouse over the box.

Do you understand me?

like this:
http://www.infoactivat.com/needed-veiw.png

but I need text with black color.

Thanks


Lorenzo Orlando Caum

  • Support Staff

May 31, 2016 at 4:45 pm

Hello,

Black text on an already dark background may be difficult to read. Is that what you are trying to setup?

Also, you may want to add an actual featured image to an event to see what this may look like.


Lorenzo


tonitarres

June 1, 2016 at 4:30 am

sorry, I need text with white color!

Thanks


Lorenzo Orlando Caum

  • Support Staff

June 1, 2016 at 7:03 am

Hi, could you share a link to the page so we can see what you currently have?

Thanks


Lorenzo


tonitarres

June 1, 2016 at 11:30 am

http://www.infoactivat.com/cequip

The grid view is in “Activitats” section on the Home page

Thanks


Josh

  • Support Staff

June 1, 2016 at 1:08 pm

The CSS that Lorenzo posted should work to make the text white. Have you tried adding the CSS?


tonitarres

June 1, 2016 at 4:53 pm

yes, I try it but with this css code, I view a black box only. I need view directly the text that I see when mouse is over the box.
And if when I move the mouse in over the box, I need text in blue color

like this:
Direct view -> http://www.infoactivat.com/needed-veiw.png
Mouse over -> same but text with other color

Do you understand me?

Thanks


Tony

  • Support Staff

June 2, 2016 at 3:20 am

You’ll need to change some of the CSS Lorenzo provided for that, change this:

.ee_grid_box a.darken span{
	color:#fff;
    -webkit-transition: all 0.5s linear;
       -moz-transition: all 0.5s linear;
        -ms-transition: all 0.5s linear;
         -o-transition: all 0.5s linear;
            transition: all 0.5s linear;
	opacity:1;

}

to this:

.espresso-grid .ee_grid_box a.darken span {
    color: #fff;
    -webkit-transition: all 0.5s linear;
    -moz-transition: all 0.5s linear;
    -ms-transition: all 0.5s linear;
    -o-transition: all 0.5s linear;
    transition: all 0.5s linear;
    opacity: 1;
}

(Note the additional .espresso-grid selector)

Now add this:

.espresso-grid .ee_grid_box a.darken:hover span {
    color: blue;
}

Change the colour to whichever value you prefer.

The support post ‘How to customize Grid Template to display event details by default? (2)’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso