If this tutorial is not what you were looking for, you still have any questions, suggestions or concerns - feel free to let us know. Please help us to serve you better!

Your Name

Your Email

Your Message (required)

captcha

Featured templates

CherryFramework 4. How to use anchor links

This tutorial is going to show how to use anchor links in CherryFramework4 templates.

CherryFramework 4. How to use anchor links

Before you can create the anchor, you’ll need to switch to the Text Editor. To do this, select the tab labeled as either “Text” or “HTML” directly above the right side of the editing area.

In order to create anchor links, you should perform the following steps:

  1. Log into your Dashboard, navigate to Pages- All Pages and open the page that has to be changed using anchor links.

  2. Search for the title of the block that you want to specify as link. Check if there is available id attribute. If there is no id, create it. The anchor is written like this:

    <a id="our-themes">I am the anchor.</a>

    The text above which says id=”unique-identifier” acts as a label for your anchor.

    Note: Make sure you have no spaces in your IDs, since that can cause problems in older browsers. Also, be sure to use a unique ID for each anchor that you create.

  3. After you have found or added an id attribute to the header element of your block, copy the id attribute or write it down:

    CherryFramework-4.-How-to-use-anchor-links-1

  4. Navigate to Appearance -> Menus select from the drop down Header Menu, click on Select item:

    CherryFramework-4.-How-to-use-anchor-links-2

  5. On the left you will see three options to insert a menu item: Pages, Custom Links and Categories. From this list select the Custom Links option.

  6. In order to add link to your anchor, select some text, and then use the Insert/Edit link button. In the URL field there, enter the # symbol, followed by the name of the anchor ID.

    Note: If the block is situated on the same page, you don’t need to specify page URL, just #id:

    CherryFramework-4.-How-to-use-anchor-links-3

  7. After you have filled out the URL and Link Text fields, click on Add to Menu and Save Menu button. It will insert your link item to the menu on the website.

The second variant to add anchor link into the page will be to use HTML tags.

In order to create anchor links, you should perform the following steps:

  1. Open the page that will include your anchor links and specify ID for some block or section as in the previous example:

    CherryFramework-4.-How-to-use-anchor-links-4

  2. The second step will be to use HTML link tag. We have to cover some title or specific part of the content by the HTML structure in order to jump to certain page location. When linking to an anchor on a page, you need to put a # in front of the anchor.

    For example: <a href=”specific-id”>Title</a>

    CherryFramework-4.-How-to-use-anchor-links-5

  3. You are able to create several anchors in the same page. Press Update button and refresh your page. You will see that after clicking on the title content jump to the certain section or click on the page.

Feel free to check the detailed video tutorial below:

CherryFramework 4. How to use anchor links

CherryFramework 4. How to use anchor links, 4.0 out of 5 based on 1 rating