R
R
Ruslan Makarov2020-01-11 10:02:37
Search Engine Optimization
Ruslan Makarov, 2020-01-11 10:02:37

The .hidden and .visible classes in Bootstrap. Hiding elements, is it dangerous for SEO?

Good!
To hide unnecessary elements on narrow screens or show them only on wide screens, I use the .hidden and .visible classes.
Thus, I increase the convenience for mobile users by removing unnecessary things, but sometimes you have to display the titles 2 times in the code.
For example, I now have two H1 headings on the page
. One is shown for mobile (the second is for desktop, just in a different place for convenience)
.
After all, now there are two identical H1 headers in the code, although they are displayed for users 1 time
each. Thank you in advance!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
Notan Royamov, 2020-01-11
@Royamov

This approach harms rankings, because content is duplicated. Go deep and apply media queries with different styles to elements without duplicating them.

M
Marsin, 2020-01-11
@Marsin

The content of the tag can be replaced using JS by setting a condition for the mobile version.

S
Seryoga Astakhov, 2020-01-11
@mob-aksessuar

I can’t understand why change H1, I put the ranking in principle only one h1, because I don’t see the point of removing the main name of the projects and confusing people, xs maybe I didn’t understand something from your article.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question