Image SVG in header-front RESTAURANT Template

Support desk for Multipurpose Quark Theme
GK User
Tue Apr 21, 2015 11:37 am
Hi, would need add a svg image in the module Header - Front.
between:
Bienvenidos a El Espacio Mágico

Jardines de Franchy

and:

C / Viera, 30, La Orotava, Tenerife, 922 33 37 13
11am - 11pm, Monday to Friday

Code: Select all
<img src="images/portada-jardines-franchy.jpg" alt="Jardines de Franchy" class="parallax-img" />
<div class="gkPage">

<i class="gkicon-dinner big-icon" data-sr="enter bottom and move 50px"></i>
<h1 data-sr="enter bottom and move 50px">Bienvenidos a El Espacio Mágico</h1>
<p data-sr="enter bottom and move 50px and wait .2s">Jardines de Franchy</p>

<<<<<<<<HERE>>>>>>>>>>

</div>
<sub data-sr="enter bottom and move 50px and wait .3s">C/ Viera, 30, La Orotava, Tenerife, 922 33 37 13<br />De 11am – 11pm, lunes a viernes</sub>


http://www.espaciobodaseventostenerife.com/

Image SVG 90x118px

Thanks
User avatar
Senior Boarder

GK User
Fri Apr 24, 2015 6:57 pm
You would need to edit module which renders this code. It's "Header - Front" module in header position.
Please disable tinyMCE editor in global configuration (change editor to "editor - none") before editing.
User avatar
Moderator

GK User
Sat Apr 25, 2015 9:30 am
Thank you very much.
The module to be longer edit knew, so I ask it helps to know that css I put in the code, since the SVG image is too big for me.
User avatar
Senior Boarder

GK User
Mon Apr 27, 2015 6:33 pm
Could you please post an url to your site where I could see the issue?
User avatar
Moderator

GK User
Tue Apr 28, 2015 11:28 am
The URL is in the first post, now the picture is not placed, I know that css need to respect the size of the svg image 90x118px
User avatar
Senior Boarder

GK User
Thu Apr 30, 2015 12:48 pm
I need to see the image placed to provide correct css.
User avatar
Moderator

GK User
Wed May 06, 2015 12:45 pm
User avatar
Senior Boarder

GK User
Wed May 06, 2015 7:21 pm
Could you please add a svg class to that element? We need to differ it from image that is used as a background.
User avatar
Moderator

GK User
Wed May 06, 2015 7:39 pm
ready
User avatar
Senior Boarder

GK User
Fri May 08, 2015 10:14 am
Please edit: /templates/gk_quark/css/override.css and add at its end:
Code: Select all
div.svg img {width: auto; height: auto;}

Remember to enable "CSS override" in template settings - advanced section.
User avatar
Moderator

GK User
Sun May 10, 2015 8:47 pm
Not work for me see de image
User avatar
Senior Boarder

GK User
Mon May 11, 2015 4:50 am
Hey,

If you add !important after the rules it works. Just then need to do positioning.

Code: Select all
div.svg img {width: auto; height: auto;}


Change to

Code: Select all
div.svg img {width: auto !important; height: auto !important;}
User avatar
Fresh Boarder

GK User
Mon May 11, 2015 7:56 pm
Solution provided by @mjranim should do the trick.
User avatar
Moderator

GK User
Tue May 12, 2015 1:57 pm
in the mobile view, the image is too large, it is possible to solve them.
thanks

mjranim wrote:Hey,

If you add !important after the rules it works. Just then need to do positioning.

Code: Select all
div.svg img {width: auto; height: auto;}


Change to

Code: Select all
div.svg img {width: auto !important; height: auto !important;}
User avatar
Senior Boarder

GK User
Tue May 12, 2015 4:54 pm
you can use css media queries:
https://css-tricks.com/snippets/css/med ... d-devices/
and define width and height for different browser sizes.
User avatar
Moderator


cron