Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
1868 Tampilan

Hi,


I tried to add anchor link in blog post in my website with odoo 16. It hasn't the copied link like main page to find anchor tag.


How to add anchor link in blog post title ?

Avatar
Buang
Jawaban Terbai

In Odoo, blog posts are typically managed through the website module, which allows you to create and manage blog content on your website. To add an anchor link in a blog post title, you'll need to do the following:


1. Edit the blog post:

- Log in to your Odoo instance as an administrator or a user with the necessary permissions to edit website content.

- Go to the website module and navigate to the blog post you want to edit.


2. Modify the blog post title:

- While editing the blog post, locate the field where you can edit the blog post title.

- Surround the blog post title with an anchor tag. The anchor tag should have a unique `id` attribute to which you'll link later.


For example, your blog post title should look like this:

 

Your Blog Post Title

  • Save the modified blog post.

3. Save the changes:

  • Now, you need to create the anchor link that will point to the blog post title.

4. Create the anchor link:

Now, you need to create the anchor link that will point to the blog post title.

5. Modify the link in your website content:

  • Go to the page where you want to add the anchor link (e.g., another blog post, a landing page, or even a separate section on the same page).
  • Create a link that points to the anchor you set earlier in the blog post title. To do this, use the # symbol followed by the id you assigned to the anchor.

For example, your anchor link should look like this:


Link to Your Blog Post Title

6. Save and publish the changes:

  • Save the changes you made to the page or content where you added the anchor link.
  • Publish the page to make the changes visible on your website.


By following these steps, you'll be able to create an anchor link in your blog post title and link to it from other parts of your website. When someone clicks on the anchor link, they'll be taken to the specific section of the blog post where the title is located.


Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
2
Jun 25
1452
2
Mar 25
2815
3
Des 24
2490
1
Okt 24
2397
0
Jan 24
1507