raindance

Member

Forum Replies Created

  • In reply to: Share this code on home page only in menu bar?

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

    In reply to: Share this code on home page only in menu bar?

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

    In reply to: How to hide breadcrumb on home page only?

    #17113

    Yes, that did it, THANK YOU!

    In reply to: Share this code on home page only in menu bar?

    #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…?

    In reply to: Share this code on home page only in menu bar?

    #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?

    In reply to: How to hide breadcrumb on home page only?

    #17111

    Interesting, I’d de-activated the plug in “category overlaod” because I didn’t think I was using it, and once I re-activated it, the >1 went away on the interior pages in the breadcrumb trail. But I still have the Home breadcrumb trail on the home page and don’t want it there. I don’t get it…it wasn’t there last I looked and now back again.

    My child theme’s functions file is:

    <?php
    function graphene_slider_post_types(){
    return array('post', 'page');
    }
    add_filter( 'graphene_slider_post_type', 'graphene_slider_post_types' );
    ?>
    <?php
    // attaches the function my_post_nav to the hook graphene_post_nav
    add_action ('graphene_after_post_content', 'my_post_nav');

    // our function
    function my_post_nav(){

    // this will allow us to use other hooks but still only show on single posts
    if ( is_single() && ! is_page() ) : ?>
    <div id="my-post-nav"> <!-- div to contain your links -->
    <?php previous_post_link_plus( array(
    'order_by' => 'menu_order',
    'loop' => false,
    'max_length' => 0,
    'tooltip' => 'Previous page',
    'in_same_cat' => true,
    'ex_cats' => '12'
    ) );?> |
    <?php next_post_link_plus( array(
    'order_by' => 'menu_order',
    'loop' => false,
    'max_length' => 0,
    'tooltip' => 'Next page',
    'in_same_cat' => true,
    'ex_cats' => '12'
    ) );?>
    </div>
    <?php endif; ?>
    <?php } ?>
    <?php
    /******
    * these next two remove the graphene breadcrumb and then add one
    * which does not appear on the home page
    *****/

    // has to be called after the action is added
    add_action ('after_setup_theme', 'wmrt_remove_graphene_bc');
    function wmrt_remove_graphene_bc() {
    remove_action ('graphene_top_content', 'graphene_breadcrumb_navxt');
    }

    add_action('graphene_top_content', 'wmrt_breadcrumb_navxt');
    function wmrt_breadcrumb_navxt () {
    //by calling this at this point is_home() works!
    if ((function_exists('bcn_display')) && (!(is_home()))) {
    echo '<div class="breadcrumb">';
    bcn_display();
    echo '</div>';
    }
    }
    ?>

    In reply to: How to hide breadcrumb on home page only?

    #17110

    I don’t get it…it just showed up again on the home page.

    http://juicytravels.com

    And on interior pages, now there is a > 1 (for example) after the name of the page.

    I don’t think I changed any code or nav settings…maybe I just didn’t notice it before but

    I can’t see why Home is back on the home page (breadcrumb I mean, which with your code above I had removed) and why now there is a > 1 after the actual page name?

    http://juicytravels.com/best-air-travel-sites/cool-flight-tracker-sites/

    Any ideas? Im using Breadcrumb NavTXT. I don’t want the breadcrumb on the home page and I don’t want it to show the > 1 after the page name. I cant imagine what I changed that made this happen. I installed Widget Logic. Don’t think I changed any navigation kinds of options. Ugh 🙂

    In reply to: Share this code on home page only in menu bar?

    #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!

    In reply to: Share this code on home page only in menu bar?

    #17540

    Weird…now when I go back to the widget page > header widget box on the right side, it doesn’t show the text box I added there? But the share this icons are still showing up on the page. Why is the text box not showing in the header widget area for me to make adjustments? I thought maybe if I add the is_home() to the “widget icon” field it would make it only show on the home page? But the text box isn’t there to make that change.

    In reply to: Share this code on home page only in menu bar?

    #17539

    Thanks Syahir…ok are these the right steps?

    1. I activated the widget logic plug in.

    2. In the WP dashboard I’m in Appearance > Graphene Options > Widget Area Options > I checked enable header widget area

    3. Now in Appearance > Widgets is a new “Header Widget” box

    4. I dragged a text box from the middle to the header widget box on the right.

    5. I pasted in my share this code:

    <span class=”st_fblike_hcount” ></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>

    5. There is a widget logic box there at the bottom which is blank. Not sure what to put there?

    6. And now I see the icons there on the home page, yeay, but they are up in the top left. So the remaining questions are:

    1. How do I get them to be where I want them, on that secondary menu bar to the right of About Laura and Juicy Hotels (far right edge of that bar)

    2. How do I tell it to appear on the home page only?

    THANK YOU!

Viewing 10 posts - 171 through 180 (of 312 total)