تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
5678 أدوات العرض

hi i am building mw home page website and added images and i want when i click on them leads me to anther page how cab i do this 

الصورة الرمزية
إهمال

Is there an answer to this question?

أفضل إجابة


Option 1: Using the Website Builder (No Code Needed)

To make an image clickable in Odoo Website, simply go to your website and click the “Edit” button. Then, click on the image you want to turn into a link. A small toolbar will appear above the image — click the link icon . In the popup window, you can either select an internal page (like /about-us or /shop), or paste an external URL (like https://yourcompany.com). Once you've entered the desired link, click Apply, and then click Save to publish the changes.

 Option 2: Use Custom HTML (if needed)

If you're comfortable with basic HTML, or using the HTML snippet:

<a href="/your-target-page">

    <img src="/web/image/1234" alt="Your Image" />

</a>

Replace /your-target-page with the actual page you want to link to.


Hope it helps

الصورة الرمزية
إهمال
أفضل إجابة

hello @نورة أحمد

I hope you are doing well,

- you need to use "a" tag outside of the "img" tag- after that you can directly redirect on other page or url.
- you can got throgh this example 
- here "a" tag href added shop page link like "/shop" 

code:

For this code please check the comment .

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari


الصورة الرمزية
إهمال

Please find the code for the solution's

<div class="o_colored_level">
<a href="/shop/">
<img src="/web/image/website.s_text_image_default_image" class="img img-fluid mx-auto" alt="" loading="lazy"/>
</a>
</div>

المنشورات ذات الصلة الردود أدوات العرض النشاط
0
أكتوبر 24
2046
1
أغسطس 21
3328
1
سبتمبر 17
16628
0
أكتوبر 15
4665
1
أغسطس 24
1274