How To Make A Link Inactive

Table of contents:

How To Make A Link Inactive
How To Make A Link Inactive

Video: How To Make A Link Inactive

Video: How To Make A Link Inactive
Video: Inactive NPCI Link Problem Solution | How to Make Active of Inactive Account Number With NPCI. 2024, December
Anonim

If the link published on the site suddenly turned out to be unnecessary, then it can be made inactive. This means that the user will no longer be able to navigate to the specified address using it.

How to make a link inactive
How to make a link inactive

Instructions

Step 1

To make the link inactive, it is enough to "clean" the code, or simply remove the tag, without which the transition will be impossible. In principle, this can be achieved by erasing the address in the href attribute. But this action when ignoring the tag has a side effect: the anchor will be disguised as a link, but without a subsequent transition. In other words, if the change of the text / picture section is provided upon hovering over, then it will be carried out as before. Therefore, you need to completely "cut" the entire bundle with the closing tag.

Step 2

In cms, the links on the toolbar correspond to two icons: one is required to insert them, the other is required in case of deactivation. With their help, you can make the transition impracticable in two steps.

Step 3

Select the complete link text in the editor window with the left mouse button. If at least one sign remains, then it will continue to "work".

Step 4

Click on the "Remove link" icon, after which the object will cease to function. To restore its functionality, you need to do the same, except with the participation of the "Insert link" button.

Step 5

The technique can be used as a decorative element of the site. In order for a part of the text to be displayed as a link, but when clicked, the transition is not carried out, the place of interest must be marked in the code in one of the following ways.

• Html:

Text

• PHP:

<? php

$ count = rand (3, 10);

for ($ i = 0; $ i <$ count; $ i ++)

$ href. = chr (rand (97, 122));

echo 'Text';

?>

• CSS / html:

hover

a: link {

color: # color value;

padding: the px value;

}

a: hover {

background: # background color value;

color: # value of the link color;

}

Text

Recommended: