Wp Navi not working?

  • raindance

    #17886

    Yeah that’s how I made this, with a header widget. Then I styled it with the text4. I just wish it would “float” in the center bar and adjust itself if there is stuff on the right or not. Maybe if I change the margin to margin right?

    Anonymous

    #17887

    Or maybe first try to position it on this page using your css..

    http://juicytravels.com/travel-deals/

    and then see what the effect is on your home page. The share area might push it over automatically on the home page, keeping it centered on both.

    Anonymous

    #17888

    Yes, your idea might work also.

    raindance

    #17889

    Well see this is how it is as I had it

    http://juicytravels.com/travel-deals/

    Which on the home page looks good

    http://juicytravels.com/

    But if the share icons aren’t there, I want it to move over to the middle…

    raindance

    #17890

    This is the code in the widget:

    <SCRIPT LANGUAGE=”Javascript”>

    <!–

    // Array of day names

    var dayNames = new Array(“Sunday”,”Monday”,”Tuesday”,”Wednesday”,

    “Thursday”,”Friday”,”Saturday”);

    // Array of month Names

    var monthNames = new Array(

    “January”,”February”,”March”,”April”,”May”,”June”,”July”,

    “August”,”September”,”October”,”November”,”December”);

    var now = new Date();

    document.write(dayNames[now.getDay()] + “, ” +

    monthNames[now.getMonth()] + ” ” +

    now.getDate() + “, ” + now.getFullYear());

    // –>

    </SCRIPT>

    So you are saying maybe make this in a div tag then control that in the css?

    raindance

    #17891

    I’ve got that code above now as

    <div class="todaysdate">
    <SCRIPT LANGUAGE="Javascript">
    <!--

    // Array of day names
    var dayNames = new Array("Sunday","Monday","Tuesday","Wednesday",
    "Thursday","Friday","Saturday");

    // Array of month Names
    var monthNames = new Array(
    "January","February","March","April","May","June","July",
    "August","September","October","November","December");

    var now = new Date();
    document.write(dayNames[now.getDay()] + ", " +
    monthNames[now.getMonth()] + " " +
    now.getDate() + ", " + now.getFullYear());

    // -->
    </SCRIPT></div>

    and in styles:

    #todaysdate {

    text-align:center;

    }

    Didn’t move 🙂

    Anonymous

    #17892

    K, one sec.

    Anonymous

    #17893

    Where are you placing this script?

    raindance

    #17894

    In appearances > widgets > header widget area > then it’s in a text widget.

    This was per Syahir’s guidance in a previous thread. It’s also how the social icons are up in the bar on only the home page.

    Hmmm…I can’t remember how they are only there on the home page…

    raindance

    #17895

    Ah….I see how we did that.

    So for the social icons it’s:

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

    widget logic: is_front_page()

    and in styles:

    }

    #text-3 {

    margin-top:-45px;

    margin-left:500px;

    }

    So how about if I do one text widget for the home page, and one for the other pages, with different styling.

    Only question would be…what would the widget logic be?

    Rather than is_front_page(), it would want to be the opposite for the one for all pages NOT home page…do you know what that call would look like?

    is_front_page !()

    or something like that?

Viewing 10 posts - 21 through 30 (of 41 total)

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