Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Javascript with Wordpress - just cant get it working? help please

Featured Replies

hey I'm trying to get Javascript working on this Wordpresss site, on the home page:My link. The js effect I'm trying to get working is something like this:My link however I'm using the method suggested by Digital Parsnip in this thread:My link

I've consulted the Codex:My link and tried to use the first method which uses

<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/pathto/yourscript.js"></script>

in the header.php file. This hasn't worked. I've also tried to use the 'Use Google Libraries' plugin to eliminate the possibility with conflicts when calling multiple versions etc. Also have had no success with that.

 

Any help much appreciated, this is doing my head in. Also have to add a js gallery to other pages so really need to figure this out.

 

cheers :)

The rollover object you want is not a Javascript rollover; it's CSS.

Just replicate the code of the one you'd like then change the CSS to suit your needs.

  • Author

The rollover object you want is not a Javascript rollover; it's CSS.

Just replicate the code of the one you'd like then change the CSS to suit your needs.

 

 

hey andyl, trying the CSS method now, having problems in IE7 on PC and in Firefox on mac,My link Is there workarounds for these or better code that I could us that would be more browser compatible?

 

thanks :)

  • Author

You've set your site to registered users only... ;)

 

 

hey Andy, sorry bout that, the client asked me to put a password on the site until it goes live :(

 

I think I'll just compromise and use something simpler that doesnt give me browser issues

 

cheers for your help :)

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.