How to remove circular references
Posted: Sun Jan 19, 2025 5:34 am
Removing circular links from your main content is easy: just find them, open the CMS editor and manually delete or change the links.
It is more difficult with the header, menu and other cross-cutting elements that are part of the site template.
If you understand PHP, you will find a lot of ways to remove circular references yourself.
Let's look at one of them - removing a link from a logo on a WordPress site.
First, open the header.php file and find the line that is malaysia phone number material responsible for displaying the logo (depending on the theme, the content of the line may differ from the one shown below):
It is necessary to make it so that when the main page is opened, the link in the logo is not active, and from other pages the link in the logo leads to the main page. The if/else condition will help with this. We modify the logo output code taking into account the condition, insert it into header.php and save the changes:
Now let's look at how to remove a circular link from the h1 heading of the current page on the WordPress CMS. To do this, find the line in the header.php file that is responsible for displaying the h1 heading. The syntax will differ depending on the theme. For example, it may look like this:
It is more difficult with the header, menu and other cross-cutting elements that are part of the site template.
If you understand PHP, you will find a lot of ways to remove circular references yourself.
Let's look at one of them - removing a link from a logo on a WordPress site.
First, open the header.php file and find the line that is malaysia phone number material responsible for displaying the logo (depending on the theme, the content of the line may differ from the one shown below):
It is necessary to make it so that when the main page is opened, the link in the logo is not active, and from other pages the link in the logo leads to the main page. The if/else condition will help with this. We modify the logo output code taking into account the condition, insert it into header.php and save the changes:
Now let's look at how to remove a circular link from the h1 heading of the current page on the WordPress CMS. To do this, find the line in the header.php file that is responsible for displaying the h1 heading. The syntax will differ depending on the theme. For example, it may look like this: