Wp Navi not working?
-
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.
Yes, your idea might work also.
Well see this is how it is as I had it
http://juicytravels.com/travel-deals/
Which on the home page looks good
But if the share icons aren’t there, I want it to move over to the middle…
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?
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 🙂
K, one sec.
Where are you placing this script?
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…
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>
<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?
- You must be logged in to reply to this topic.