PDA

View Full Version : Quick question about code placement



dsulvett
12-22-2012, 08:33 AM
Hi -

So if I add the html code onto my blog, which page do i actually add it too? Is there any step by step instructions on how to add the code for mobile idx and optimal settings? Thanks i am certainly challenged with this stuff.

Mike McGee
12-23-2012, 06:18 AM
I'm assuming you're asking about the mobile redirect script? Basically, any page that has dsSearchAgent or dsIDXpress listings on it already has mobile redirect script included, so you don't need to add it on those pages. If you want to add the script on other pages of your site, you can find directions here: http://wiki.diversesolutions.com/mobile:redirecting-from-site

For WordPress, I have found it works best to put the script into the page template file. If you just paste it into the HTML editor of a given page, WordPress has a habit of screwing up the code.

Daveed
12-27-2012, 09:56 AM
Hi -

So if I add the html code onto my blog, which page do i actually add it too? Is there any step by step instructions on how to add the code for mobile idx and optimal settings? Thanks i am certainly challenged with this stuff.

Hello Dave!

The information that Mike provided you below is correct, any Page that has dsSearchAgent embedded onto it or a dsIDXpress Listing is going to automatically redirect the User to the Mobile IDX, so you wouldn't need to add the Mobile Script Code for those situations.

The best thing to do would be to add the Script Code to the Header/Footer of the Template/Theme that you're using so that Users can be prompted on whether or not to use Mobile right when they get to your Site, but again if they land on any dsIDXpress Listings or Page with dsSearchAgent on it, it will automatically redirect and bypass the Script Code if it's added.