I have two SVG images (one for mobile and one for regular screens) and I'm trying to figure out where to add them into the code. I have a child theme created already. I was planning to use this code to my header structure:
.trawell-cover {
background-image: url('https://intentionaldetours.com/wp-content/uploads/2019/02/intentional-detours-2-1920x1080.jpg');
background-size: cover;
}
you will replace the src property with the address of the SVG instead.
Anyways, I literally cannot find where the src= tag and don't know whether I should do this instead:
.trawell-cover {
position: relative;
}
img {
height: 300px;
width: 300px;
position: absolute;
left: 50%;
top: 50%;
margin-top: -150px;
margin-left: -150px;
}
img.desktopImage {
display: block;
}
img.mobileImage {
display: none;
}
...
@media screen and (max-width: 500px) {
.desktopImage {
display: none;
}
.mobileImage {
display: block;
}
}
I just am not seeing this section with the src= tags anywhere in main.css. I am new to this but i really want to accomplish this.
Can't try much since I cannot find the area where it should be.
.trawell-cover {
position: relative;
}
img {
height: 300px;
width: 300px;
position: absolute;
left: 50%;
top: 50%;
margin-top: -150px;
margin-left: -150px;
}
img.desktopImage {
display: block;
}
img.mobileImage {
display: none;
}
...
@media screen and (max-width: 500px) {
.desktopImage {
display: none;
}
.mobileImage {
display: block;
}
}
I want my SVG images on my site like on the site lostwithpurpose.com