Forum Replies Created
-
AuthorPosts
-
i think the h1 headline comes from the php file config.php in the folder config-woocommerce, right?
update:
i found the php code (in the config.php) for the headline for the shop overview page:
$output .='<div class="container">'; $output .='<main class="template-page content av-content-full alpha units">'; if($description) $output .= "<h1>".$description."</h1>"; $output .='</main></div></div></div>'; return $output; }
But what is the description? Where can i find it in wordpress?
can i change “description” in “title” or something else?- This reply was modified 8 years, 5 months ago by Chris_85.
thanks, works fine!
Thanky Yigit for your suggestion…but the code has no effect to the icon link…it is still without “nofollow”…any other ideas?
best regards
Chris
- This reply was modified 8 years, 5 months ago by Chris_85.
so… ich checked all the woocommerce template files. The product-archive.php is the template for this site: http://www.auto-ribbe.de/de/fahrzeuge/neu-jahres-und-gebrauchtwagen/ But in this template i cant change the h1 headline. Also the support from woocommerce said it must be a theme thing… So please can you check where the h1 from this site is comming from?
best regards
Chris
also with this selector “.av-icon-char” it doesnt work. I also tryed the unique selector and it also didnt put the lnik on nofollow…any ideas?
beste regards
Chris
hey, yes take a look (user details are in the private content)
Thanks
Hey Yigit,
i use your custom code in my function.php:
function remove_title_attr(){ ?> <script> jQuery(window).load(function(){ jQuery('.av-icon-char a').attr('rel','nofollow'); }); </script> <?php } add_action('wp_footer', 'remove_title_attr'); ?>
But when i look on my website at the facebook-icon on the bottom of the site the link did not have an nofollow attribute…Take a look: http://www.hochzeitshaus-leipzig.de/
any ideas?
cheers Chris
Hi,
when you look on this page: http://www.auto-ribbe.de/de/fahrzeuge/neu-jahres-und-gebrauchtwagen/ You can see the h1 headline. But in the backend i didnt found a place where i can change it. It is the woocomerce shop overview page. In the Backend unter pages it is no possible to change the h1. Where can i do this?
best regards
Chris
Thanks Yigit,
but i use different classes for different changes. So my Question: can i use a Syntax like this
jQuery('.your-custom-class a', '.your-custom-class2 a' )
, to approach more than one class?
thanks for your answer… i want to change the content of the H1 headline. I cant find it..Can you help please?
best regards
Chris
Thanks Yigit for this very good solution!
Is it possible to specify more css-classes in this script for example:
function remove_title_attr(){ ?> <script> jQuery(window).load(function(){ jQuery('.your-custom-class a', '.your-custom-class2 a' ).attr('rel','nofollow'); }); </script> <?php } add_action('wp_footer', 'remove_title_attr');
Cheers Chris
please look to this site: http://www.hochzeitshaus-leipzig.de/kontakt
There you can find a button called “Termin online buchen” This should be a nofollow button…best regards
Chris
and is there another solution with code :-)
cheers
Chris
Hi,
i tryed it again and it works… was my fault sorry…
cheers
Chris
mh… if i use html (
<a href="http://www.tagesschau.de/">ARD Tagesschau</a>
) it doesnt work. After safeing the field is empty…Any ideas?
best regards
Chris
- This reply was modified 8 years, 6 months ago by Chris_85.
Hey Yigit,
thanky for your answer. login-details see below:
Hi Josue,
and a solution without plugin?
Best regards
Chris
wow, very good to know! Thanks for the good support!
ok… that was my mistake… Thankyou very much!!
Thanks Yigit for the very good support.
How did you adjusted the code to load from the child theme?best regards Chris
yeah…
thanks Yigit,
i removed script tags… but the script doesnt work in the external file. I dont know why…
thanks Yigit!
now the script is in the footer. But why isnt it possible to load the script in an external file?
best regards
Hi,
yes… see the login-details in the private section.
on the site: http://www.hochzeitshaus-leipzig.com/ringe-und-schmuck i do not load the script inline with the codeblock, All other sites load the script inline with the codeblock.
I hope you can help me…
best regards
Thanks…:-)
see in the private section
Thanks for looking
thanks for the fast answer:
here is my script:http://pastebin.com/suTibJbU
It works inline, but not when i load it in an external file. I dont know why?
Hi, Vinnie,
yes, i can register the sript and i find the script in the source-code. But the script doesnt work. When i use the same script in the codeblock (inline) than the script works… Do you understand this?
ok,
now i can load the javascript to the source-code but it doesnt effect my html classes. when i load it with the codeblock it effects the html classes and all is fine. I dont understand this. Can you help me?
- This reply was modified 8 years, 6 months ago by Chris_85.
is that possible?
-
AuthorPosts