K
K
Konstantin2022-03-20 08:02:09
URL Handling
Konstantin, 2022-03-20 08:02:09

How to remove # in the address bar of a page?

You need to remove the value # from the link leading to the internal page of the site.
Here is the code:

<!-- Nav-Links start -->
                        <ul class="nav navbar-nav navbar-right">
                            <li class="active"><a href="" class="scroll-to">Главная</a></li>
              <!-- <li><a href="#services2" class="scroll-to">Преимущества</a></li> -->
            <li class="active"><a href="price.html" ">Прайс</a></li>
                            <li><a href="$services" class="scroll-to">Цены</a></li>                            
                            <li><a href="#locations" class="scroll-to">Контакты</a></li>
                            <li><a href="#contact" class="scroll-to">Записаться</a></li>
              <!-- <li><a href="#newsletter" class="scroll-to">Вакансии</a></li> -->
                        </ul>
                        <!-- Nav-Links end -->

When a person navigates through the internal pages of the site, it goes like this: https://site.ru/#service
And you need the address to be like this https://site.ru/service

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex_Koval, 2022-03-20
@Alex_Koval

Either editing the links in the Menu (Appearance-Menu) or in the template files you are using.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question