-
AuthorPosts
-
August 12, 2014 at 1:39 pm #303183
where can i put my snipped code I have generated to get more visibility ??
August 12, 2014 at 1:56 pm #303193Hi victor!
Can you paste the code you have in http://pastebin.com/ and post the link here?
Regards,
YigitAugust 13, 2014 at 3:03 am #303537This reply has been marked as private.August 13, 2014 at 4:00 am #303579Hi!
What is it you are trying to do with the code that isn’t working? Are you adding it to a text widget in the footer, a code element in a page layout or what?
Best regards,
DevinAugust 13, 2014 at 4:21 am #303585No. This is a code generated by my visibility tool I have with my hosting provider. They only provide the code to be implemented in the site so it will show that information in google search engines. But since I am running enfold as a theme, I do not know where to place this code. Usually it is placed in the header when I built html/css sites (no wordpress sites).
August 13, 2014 at 4:30 am #303595It could go anywhere you want it to show in that case. I would recommend a footer widget as a text widget since it looks like an address.
August 13, 2014 at 5:36 am #303633No. Let me explain myself better. This snippet code it is to be placed in the code like google analytics does it. Some themes provide a placement for the google analytics code (this is jus an example), but my snippet code (the one I provided above as a link by request of moderator Yigit) should go into a safe place in the code. I am asking the theme creator because I do not want to break anything in the theme code.
August 13, 2014 at 6:17 am #303659Hi!
I’m not sure what you mean by “safe place” but you should probably ask your host where to properly put this code. Do you want this code inside the <head> tag, <body> etc? If you want to place it under the opening body tag, use this on functions.php:
function place_random_code() { ?> <div id="hide-div" itemscope="itemscope" itemtype="http://schema.org/LocalBusiness"> <span itemprop="name">Sabrostar Fruit Company</span> <div itemprop="address" itemscope="itemscope" itemtype="http://schema.org/PostalAddress"> <span itemprop="streetAddress">Avenida Francisco de Orellana #234, Edificio Blue Towers Piso 15</span> <span itemprop="addressLocality">Guayaquil</span>, <span itemprop="addressRegion">Guayas</span> <span itemprop="addressCountry">Ecuador</span> <span itemprop=“email”> (Email address hidden if logged out) </span> </div> Phone: <span itemprop="telephone">593-4-3709600</span> Website: <a itemprop="URL">http://www.sabrostarfruitcompany.com/</a> </div> <?php } add_action('wp_head', 'place_random_code');
Use this on Quick CSS to hide it:
#hide-div { display: none; }
Cheers!
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.