Support

Home Forums Event Espresso Premium Grid view – image size

Grid view – image size

Posted: May 15, 2017 at 9:27 am


Bosworthsgc

May 15, 2017 at 9:27 am

Hi
Can you advise what size the image for the grid view should be please

Currently I have a black bar at the top and the bottom of the image

Thanks


Tony

  • Support Staff

May 15, 2017 at 9:50 am

Hi there,

The black bars are not from an incorrect image size, they are from the BR tags before/after the image – http://take.ms/b5Ul4

Those are not included in the default template, are you loading your own custom template for the grid add-on?


Bosworthsgc

May 16, 2017 at 2:06 am

Hi Tony

Thats strange – no its not a custom template

We are just changing some code to add available places but this was happening before that
I have copied the template and put it in the theme folder

Would you suggest making any changes in here?

Thanks


Tony

  • Support Staff

May 16, 2017 at 4:02 am

Yes, I’d recommend removing the br tags around the img output.

Open up the template you are using and look for <br/> tags around this line:

<img src="<?php echo $image; ?>" alt="" />


Bosworthsgc

May 16, 2017 at 4:07 am

Hi Tony

I have found that line but strangely it doesnt have the <br/> tags around it at all


Tony

  • Support Staff

May 16, 2017 at 4:25 am

Sounds like either your theme (or a plugin) is altering the content.

If you temporarily switch themes to one of the default such as twentyforuteen and view the page does the same happen? You can do tha without effecting your end users using the Theme Test Drive plugin.

You can hide those BR’s using CSS:

.ee_grid_box.item a>br {
    display: none;
}

However you’d be much better tracking down whatever it causing the brs to be added to the page as it will only cause more problems.

The support post ‘Grid view – image size’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Tony 2 years, 2 months ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!