zadok22
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Adding body_class for just one pageHello thanks for all the help. I implemented the code, but I want to make sure I did it correctly, because it is not the home page. The name of the specific page is: “navy-seaport-e”. So I altered your code to say below:
// Add custom class to navy-seaport-e page
function my_class_names($classes) {
if ( is_navy-seaport-e() ) {
$classes[] = ‘custom navy-seaport-e’;
}
return $classes;
}
add_filter(‘body_class’,’my_class_names’);*************
THE ORIGINAL INSTRUCTIONS GIVEN TO ME INCLUDE ADDING SOME SCRIPT TO THE HEAD SECTION ALONG WITH THE SCRIPT FOR THE BODY CLASS AND SAID:“If you put this in the <head> section:
<script type=”text/javascript” language=”javascript”>
function setSPETODate() {
var dt = new Date();
var dtStr = (dt.getMonth() + 1) + ‘/’ + dt.getDate() + ‘/’ + dt.getFullYear();
document.getElementById(“listSeaPorteTaskOrders”).options[1].text = “(No Task Orders as of: ” + dtStr + “)”;
}
</script>And change the <body> tag to this:
<body class=”custom navy-seaport-e” onload=”setSPETODate()”>
the dropdownlist will always display the current date for option 1 (until we actually can change the list to a TO identifier):”
**************
I USED A PLUGIN FOR ADDING THE SCRIPT TO THE HEAD SECTION BUT DONT KNOW IF THEIR IS A MORE PRACTICAL WAY TO DO THIS. I APPRECIATE ANY FURTHER ASSISTANCE. THANKS.
Forum: Fixing WordPress
In reply to: Moving WordPress from a folder to root?Thank you so much, I ended out reconnecting all my broken links after the migration. Nevertheless its up now. Thanks again. The site is: https://silverrhino.com
Forum: Fixing WordPress
In reply to: Moving WordPress from a folder to root?I have a similar but not exact situation. I built a website with WordPress on a new host for a corporation (i am a novice with WP and I am using Thesis Framework, so this all semi new). However the same client/company was still live with the old site. My newly built site just had an ip address with the wp folders in the address. When I set up the PHP myAdmin changes to the corporate name and another employee had the domain name servers switched to the new host, I saw my site but all the image links were broken. Is there a global way to switch the image links or do I have to change all of them manually? If so, how do you do this?
I am so use to Dreamweaver where it makes all the link changes for you. Any help here is appreciated (especially you Christine).
Thanks in advance. Joel