Osclass Support Forums
Osclass theme support => Beta Osclass Theme => Topic started by: Andrey on November 28, 2019, 05:58:23 PM
-
Hello! Please tell me: how to make it possible for the user to hide the phone at will, as with an email
(https://do-mos.ru/Phone.JPG) Thank you
-
@Olime
You would have to update database as well because information if email is shown or not is stored in item table.
-
You did not understand me. I want the user to be able to hide the phone or show when submitting an ad. For dating category.
There is also Beta at the Head.php
<? php if (osc_get_canonical ()! = '') {?> <link rel = "canonical" href = "<? php echo osc_get_canonical ();?>" /> <? php}?> but it doesn't work after alpha. Yandex sends:
Hello!
Important pages have changed the attribute rel = "canonical":
https://site.net/elektrostal/uslugi/avtouslugi/ustanovka-webasto-remont-vebasto-v-elektrostali_i176728
Old value: https://site.net/elektrostal/uslugi/avtouslugi/ustanovka-webasto-remont-vebasto-v-elektrostali_i176728
New value: -
https://site.net/zhukovskiy/kuplyu-prodam/odezhda-obuv-aksessuary/detskiy-garderob/kostyum-zimniy_i179099
Old value: https://site.net/zhukovskiy/kuplyu-prodam/odezhda-obuv-aksessuary/detskiy-garderob/kostyum-zimniy_i179099
New value: -
Why the rel = "canonical" attribute does not work :? Tell me please. Thank you
-
I understood very well, just do not understand why you mix different topic. Canonical urls are generatex by osclass and may not be shown on every page.
-
Sorry for mixing the threads. Beta do not generate rel = "canonical"
You say update the database. It was updated when installing Osclass 3.9.0
-
Yes, sorry, this is my problem. On the test site, Beta generates rel = "canonical".
What could be the problem please help
-
Theme does not generate canonical urls, osclass does.