{"id":6544,"date":"2021-10-03T09:44:46","date_gmt":"2021-10-03T07:44:46","guid":{"rendered":"https:\/\/lacolmenatecnologica.com\/anchor-links-in-elementor-to-navigate-within-the-same-page-in-wordpress\/"},"modified":"2026-09-02T19:41:53","modified_gmt":"2026-09-02T17:41:53","slug":"anchor-links-in-elementor-to-navigate-within-the-same-page-in-wordpress","status":"publish","type":"post","link":"https:\/\/lacolmenatecnologica.com\/en\/anchor-links-in-elementor-to-navigate-within-the-same-page-in-wordpress\/","title":{"rendered":"Anchor Links in Elementor to Navigate Within the Same Page in WordPress"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"inicio\">What Is an Anchor in HTML?<\/h2>\n\n<p class=\"wp-block-paragraph\">An anchor is the destination link we specify when creating a hyperlink. These are links that take us to another web page, open an email, a phone number, download a file, or as we will see in this topic, take us to another point on the same page. Let&#8217;s look at an example:  <\/p>\n\n<pre class=\"wp-block-code\"><code>&lt;a href=\"<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-colmena-verde-color\">https:\/\/lacolmenatecnologica.com\/<\/mark>\">La Colmena Tecnol\u00f3gica&lt;\/a><\/code><\/pre>\n\n<p class=\"wp-block-paragraph\"><strong>Result:<\/strong> <a href=\"https:\/\/lacolmenatecnologica.com\/en\/\" target=\"_blank\" rel=\"noreferrer noopener\">La Colmena Tecnol\u00f3gica<\/a><\/p>\n\n<p class=\"wp-block-paragraph\">In this HTML code example we see how the text between the <strong>&lt;a&gt;<\/strong> (opening) and <strong>&lt;\/a&gt;<\/strong> (closing) tags will contain a hyperlink to the URL <span class=\"has-inline-color has-ast-global-color-0-color\"><em>https:\/\/lacolmenatecnologica.com\/<\/em><\/span>. That is, when clicking on the text <strong>La Colmena Tecnol\u00f3gica<\/strong> the browser will send us to the destination we have specified in the <strong>href<\/strong> attribute. <\/p>\n\n<p class=\"wp-block-paragraph\">Of course we don&#8217;t need to know HTML to create a hyperlink with Elementor, but it doesn&#8217;t hurt to know it.<\/p>\n\n<h2 class=\"wp-block-heading\" id=\"tipos-de-ancla-04956743-628a-4bdd-ba0e-2fa31dd52c76\">Types of Anchors<\/h2>\n\n<p class=\"wp-block-paragraph\">In the following table you can see in green several types of anchors, some need a prefix such as email which must be preceded by <strong>mailto:<\/strong> or a phone number which must be preceded by <strong>tel:<\/strong>. To force the download of a file instead of viewing it, we must add the <strong>download<\/strong> attribute. <\/p>\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Type<\/th><th>HTML Code<\/th><\/tr><\/thead><tbody><tr><td><a href=\"https:\/\/lacolmenatecnologica.com\/en\/\" target=\"_blank\" rel=\"noreferrer noopener\">URL or Link<\/a><\/td><td>&lt;a href=&#8221;<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-colmena-verde-color\">https:\/\/lacolmenatecnologica.com\/<\/mark>&#8220;&gt;Web page&lt;\/a&gt;<\/td><\/tr><tr><td><a href=\"mailto:mario@lacolmenatecnologica.com\">Email<\/a><\/td><td>&lt;a href=&#8221;<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-colmena-verde-color\">mailto:mario@lacolmenatecnologica.com<span style=\"color:#23a455\" class=\"has-inline-color\"><\/span><\/mark>&#8220;&gt;Web page&lt;\/a&gt;<\/td><\/tr><tr><td><a href=\"tel:+34665123123\">Phone<\/a><\/td><td>&lt;a href=&#8221;<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-colmena-verde-color\">tel:+34665123123<\/mark>&#8220;&gt;Web page&lt;\/a&gt;<\/td><\/tr><tr><td><a href=\"https:\/\/lacolmenatecnologica.com\/wp-content\/uploads\/2020\/12\/AFI_grafico_2020_es.pdf\">Download File<\/a><\/td><td>&lt;a href=&#8221;<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-colmena-verde-color\">https:\/\/lacolmenatecnologica.com\/AFI_grafico.pdf<\/mark>&#8221; <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-colmena-verde-color\">download=&#8221;AFI Gr\u00e1fico&#8221;<\/mark>&gt;Web page&lt;\/a&gt;<\/td><\/tr><tr><td><a href=\"#inicio\">Same Page<\/a><\/td><td>&lt;a href=&#8221;<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-colmena-verde-color\">#inicio<\/mark><span style=\"color:#23a455\" class=\"has-inline-color\"><\/span>&#8220;&gt;Web page&lt;\/a&gt;<\/td><\/tr><tr><td><a href=\"https:\/\/lacolmenatecnologica.com\/en\/#inicio\/\" target=\"_blank\" rel=\"noreferrer noopener\">Anchor to Another Page<\/a> <\/td><td>&lt;a href=&#8221;<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-colmena-verde-color\">https:\/\/lacolmenatecnologica.com\/nombre-de-la-pagina\/#inicio<mark style=\"color:#23a455\" class=\"has-inline-color\"><\/mark><\/mark>&#8220;&gt;Web page&lt;\/a&gt;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n<h2 class=\"wp-block-heading\" id=\"anadir-un-enlace-a-la-misma-pagina-con-elementor-59fe820b-b4bb-4981-a65a-2ff5aeab9003\">Adding a Link to the Same Page with Elementor<\/h2>\n\n<p class=\"wp-block-paragraph\">To add a link that goes to another point on the same page we will need to follow these steps.<\/p>\n\n<ol class=\"wp-block-list\">\n<li>Click on the widget you want to scroll to when clicking, it can be a section or any widget within the page we are editing. In this example we will use a section, so we click on its tab to select it  <img loading=\"lazy\" decoding=\"async\" width=\"90\" height=\"21\" class=\"wp-image-4904\" style=\"width: 90px;\" src=\"https:\/\/lacolmenatecnologica.com\/wp-content\/uploads\/2025\/12\/selector-de-seccion-elementor.png\" alt=\"Elementor Section Selector\"\/><\/li>\n\n\n\n<li>Then in the left column we click on the <strong>Advanced<\/strong> tab.<\/li>\n\n\n\n<li>In the <strong>Advanced<\/strong> section of the <strong>Advanced<\/strong> tab we enter an identification name in the <strong>CSS ID<\/strong> field.<br\/>Recommendations for the <strong>CSS ID<\/strong> name:\n<ul class=\"wp-block-list\">\n<li>Always write in lowercase.<\/li>\n\n\n\n<li>Replace spaces with hyphens or underscores, example: <strong>what_we_can<\/strong><\/li>\n\n\n\n<li>Use only alphabetic characters and numbers.<\/li>\n\n\n\n<li>Don&#8217;t get confused, the <strong>#<\/strong> sign is not necessary to put here, we will put it later in the hyperlink.<\/li>\n\n\n\n<li>This name is unique throughout the page, we should not use it again for other elements. An ID defines a single element. <\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<div class=\"wp-block-image\">\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6ab18aa16e680&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6ab18aa16e680\" class=\"aligncenter size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"355\" height=\"524\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/lacolmenatecnologica.com\/wp-content\/uploads\/2025\/12\/id_de_css.jpg\" alt=\"Define Unique ID in Elementor\" class=\"wp-image-4906\" srcset=\"https:\/\/lacolmenatecnologica.com\/wp-content\/uploads\/2025\/12\/id_de_css.jpg 355w, https:\/\/lacolmenatecnologica.com\/wp-content\/uploads\/2025\/12\/id_de_css-339x500.jpg 339w\" sizes=\"auto, (max-width: 355px) 100vw, 355px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div>\n<ol start=\"4\" class=\"wp-block-list\">\n<li>Now we will click on the element of our page where we want to add the hyperlink, so that when we click it scrolls to the section to which we have assigned the ID <strong>what_we_can<\/strong>. We can put this link in any widget that supports links or in text through the text editor. In this case we will use an <strong>Icon<\/strong> widget to add this link to the page itself.  <\/li>\n\n\n\n<li>In the left column we click on the <strong>Content<\/strong> tab and enter the ID name in the <strong>Link<\/strong> field, now yes, preceded by the hash sign <strong>#<\/strong>. In this case: <strong>#what_we_can<\/strong> <\/li>\n<\/ol>\n<div class=\"wp-block-image\">\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6ab18aa16ebb2&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6ab18aa16ebb2\" class=\"aligncenter size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"353\" height=\"541\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/lacolmenatecnologica.com\/wp-content\/uploads\/2025\/12\/enlace-a-la-misma-pagina.jpg\" alt=\"Link to the Same Page\" class=\"wp-image-4907\" srcset=\"https:\/\/lacolmenatecnologica.com\/wp-content\/uploads\/2025\/12\/enlace-a-la-misma-pagina.jpg 353w, https:\/\/lacolmenatecnologica.com\/wp-content\/uploads\/2025\/12\/enlace-a-la-misma-pagina-326x500.jpg 326w\" sizes=\"auto, (max-width: 353px) 100vw, 353px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div>\n<ol start=\"6\" class=\"wp-block-list\">\n<li>Once this is done we save and our link to the same page is complete.<\/li>\n<\/ol>\n\n<p class=\"wp-block-paragraph\">We can put this same link in other widgets or texts on our page to link to that section. This type of link is usually used on pages whose content is extensive to make it easier for the user to access the content they need. In addition, we can also use the complete hyperlink on another page, as we see below, to open a different page and scroll to the point we want:  <\/p>\n\n<pre class=\"wp-block-code\"><code>https:\/\/lacolmenatecnologica.com\/<span style=\"color:#23a455\" class=\"has-inline-color\">#que_podemos<\/span><\/code><\/pre>\n\n<p class=\"wp-block-paragraph\">We just need to add the ID preceded by the hash sign # at the end of the page URL. Now we can use this anchor on any other page to take the user not only to a page, but also to the specific point on that page that we want. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>What Is an Anchor in HTML? An anchor is the destination link we specify when creating a hyperlink. These are links that take us to another web page, open an email, a phone number, download a file, or as we will see in this topic, take us to another point on the same page. Let&#8217;s [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":6545,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_seopress_titles_title":"Create Elementor Anchor Links for One-Page Navigation","_seopress_titles_desc":"What Is an Anchor in HTML? An anchor is the destination link we specify when creating a hyperlink. These are links that take us to\u2026","_seopress_robots_index":"","_seopress_robots_follow":"","_seopress_robots_imageindex":"","_seopress_robots_snippet":"","_seopress_robots_primary_cat":"none","_seopress_robots_breadcrumbs":"","_seopress_robots_freeze_modified_date":"","_seopress_robots_custom_modified_date":"","_seopress_robots_canonical":"","_seopress_social_fb_title":"","_seopress_social_fb_desc":"","_seopress_social_fb_img":"","_seopress_social_fb_img_attachment_id":0,"_seopress_social_fb_img_width":0,"_seopress_social_fb_img_height":0,"_seopress_social_twitter_title":"","_seopress_social_twitter_desc":"","_seopress_social_twitter_img":"","_seopress_social_twitter_img_attachment_id":0,"_seopress_social_twitter_img_width":0,"_seopress_social_twitter_img_height":0,"_seopress_redirections_value":"","_seopress_redirections_enabled":"","_seopress_redirections_enabled_regex":"","_seopress_redirections_logged_status":"both","_seopress_redirections_param":"","_seopress_redirections_type":301,"_seopress_analysis_target_kw":"","_seopress_news_disabled":"","_seopress_video_disabled":"","_seopress_video":[],"_seopress_pro_schemas_manual":[],"_seopress_pro_rich_snippets_disable_all":"","_seopress_pro_rich_snippets_disable":[],"_seopress_pro_schemas":[],"footnotes":"","_bricks_page_content_2":[],"_bricks_page_header_2":[],"_bricks_page_footer_2":[]},"categories":[374],"tags":[385,386],"class_list":["post-6544","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-elementor","tag-web-design","tag-wordpress-customization"],"_links":{"self":[{"href":"https:\/\/lacolmenatecnologica.com\/en\/wp-json\/wp\/v2\/posts\/6544","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lacolmenatecnologica.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lacolmenatecnologica.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lacolmenatecnologica.com\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/lacolmenatecnologica.com\/en\/wp-json\/wp\/v2\/comments?post=6544"}],"version-history":[{"count":1,"href":"https:\/\/lacolmenatecnologica.com\/en\/wp-json\/wp\/v2\/posts\/6544\/revisions"}],"predecessor-version":[{"id":6546,"href":"https:\/\/lacolmenatecnologica.com\/en\/wp-json\/wp\/v2\/posts\/6544\/revisions\/6546"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lacolmenatecnologica.com\/en\/wp-json\/wp\/v2\/media\/6545"}],"wp:attachment":[{"href":"https:\/\/lacolmenatecnologica.com\/en\/wp-json\/wp\/v2\/media?parent=6544"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lacolmenatecnologica.com\/en\/wp-json\/wp\/v2\/categories?post=6544"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lacolmenatecnologica.com\/en\/wp-json\/wp\/v2\/tags?post=6544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}