0

I have this static block:

<div class="interior-block-slide" style="background-image: url({{media url='wysiwyg/typostores/typologancee/images/home07/vertical-blinds-full- frontend.jpg'}});">
<div class="interior-inner">
<h4 class="title"><a href="https://www.wallpapershop.gr/en/blinds/vertical-blinds.html">VERTICAL   BLINDS <a href="https://www.wallpapershop.gr/en/blinds/vertical-  blinds.html"><span class="price">COLLECTION</span></a></h4>
</div>
</div>

I manage to insert href links for some words but I also want to make the whole image inside this div class :

<div class="interior-block-slide" style="background-image: url({{media url='wysiwyg/typostores/typologancee/images/home07/vertical-blinds-full- frontend.jpg'}});">

link. How can I insert in this div the href link please?

0

Try below code:

<div class="interior-block-slide" style="background-image: url('{{media url="wysiwyg/typostores/typologancee/images/home07/vertical-blinds-full- frontend.jpg"}}')">

Your syntax seems to be wrong.

  • Syntax was wrong. Picture was fine in front-page. – G. G. Dec 12 '18 at 19:49
0

----- Add Background Image in static block -------

  <div style="background-image: url('{{media url='wysiwyg/testing-image-name.jpeg'}}');">
       <a href="{{store direct_url="enter_your_link_here"}}">Enter Link Name</a>
  </div>

------- Demo -----------

Onclick "Enter Link Name" It'll redirect to your respective URL enter image description here

  • I don't want to add any content. I just want to make this image link – G. G. Dec 12 '18 at 19:39
  • First one will help for you G.G – Ajithkumar Dec 12 '18 at 19:49
  • <div style="background-image: url('{{media url='wysiwyg/testing-image-name.jpeg'}}');"> // content here..!!!! </div> – Ajithkumar Dec 12 '18 at 19:49
  • Yes but I don't want to add any content. I want to click on the image. I don't understand... – G. G. Dec 12 '18 at 19:51
  • Okieee Wait...I'll update my code – Ajithkumar Dec 12 '18 at 19:53

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.