Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #303183

    where can i put my snipped code I have generated to get more visibility ??

    #303193

    Hi victor!

    Can you paste the code you have in http://pastebin.com/ and post the link here?

    Regards,
    Yigit

    #303537
    This reply has been marked as private.
    #303579

    Hi!

    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,
    Devin

    #303585

    No. 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).

    #303595

    It 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.

    #303633

    No. 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.

    #303659

    Hi!

    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

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.