Share this code on home page only in menu bar?

  • raindance

    #17541

    Now it’s showing the text widget in the header area again, weird. I just had to go to another area of the dashboard and come back, then it was there again. But adding is_home() to the Widget Logic icon made them disappear from the home page, so I guess I didn’t do that right.

    So…still wondering how to get them to the spot I want, and, how to make them show up on home page only.

    Thanks!

    Admin

    Syahir Hakim

    #17542
    Quote:
    But adding is_home() to the Widget Logic icon made them disappear from the home page, so I guess I didn’t do that right.

    Try adding is_front_page() instead.

    raindance

    #17543

    That did it! Thanks!

    Now how do I get it in the right place, down on the secondary menu bar to the far right? 🙂

    And is there any chance this is what made my Home breadcrumb link show up again on the home page? Doubtful. I had it gone. Now it’s there again. Do you know how to get rid of it on the home page only?

    Admin

    Syahir Hakim

    #17544

    Yeah is_home() refers to your posts listing page, which is fine when your site’s front page is set to list the most recent blog posts (which is the default WordPress settings). is_front_page() on the other hand is for the site’s front page, regardless of whether it displays a static front page or a list of the recent posts.

    raindance

    #17545

    I changed the code in the text widget in the header widget to be:

    <div class=”sharethishomepage”>

    <span class=”st_fblike” ></span>

    <span class=”st_facebook”></span>

    <span class=”st_twitter”></span>

    <span class=”st_linkedin”></span>

    <span class=”st_stumbleupon”></span>

    <span class=”st_email” ></span>

    <span class=”st_sharethis”></span>

    <script type=”text/javascript” src=”http://w.sharethis.com/button/buttons.js”></script&gt;

    <script type=”text/javascript”>

    stLight.options({

    publisher:’wp.48f508c4-0b75-4c89-a79f-1d00814f82e7′

    });

    </script>

    </div>

    Then in my child styles.css file I added

    #sharethishomepage {

    float:right;

    margin-top:200px;

    }

    But it didn’t move it. Clearly I didn’t do it right…?

    raindance

    #17546

    Still can’t get it in the right place…sorry I know this is me being lame with css, not a theme issue.

    Now I’ve got the code in the text widget as

    <span class=”st_fblike”></span>

    <span class=”st_facebook”></span>

    <span class=”st_twitter”></span>

    <span class=”st_linkedin”></span>

    <span class=”st_stumbleupon”></span>

    <span class=”st_email” ></span>

    <span class=”st_sharethis”></span>

    <script type=”text/javascript” src=”http://w.sharethis.com/button/buttons.js”></script&gt;

    <script type=”text/javascript”>

    stLight.options({

    publisher:’wp.48f508c4-0b75-4c89-a79f-1d00814f82e7′

    });

    </script>

    And the css:

    #textwidget {

    float:right;

    margin-top:200px;

    }

    But still not moving it…can you let me know what to tweak to get it where I want it please?

    Thanks so much.

    raindance

    #17547

    @Josh

    re the slider:

    I see this code on my child theme functions file

    <?php

    function graphene_slider_post_types(){

    return array(‘post’, ‘page’);

    }

    add_filter( ‘graphene_slider_post_type’, ‘graphene_slider_post_types’ );

    ?>

    Which I know had to do with it but I don’t remember why/what now! I know I made a category just for the home slider then assign a post to it, and I think there was more to it…will circle back to it in the next few days if you need.

    raindance

    #17548

    Got it 🙂

    }

    #text-3 {

    margin-top:248px;

    margin-left:740px;

    }

    http://juicytravels.com/

    But I failed to appreciate that it would conflict with the menus so maybe I’ll move it up to the top bar then I guess.

    Thanks again for the guidance.

Viewing 8 posts - 11 through 18 (of 18 total)

  • 1
  • 2
  • You must be logged in to reply to this topic.