• Resolved hexa6on

    (@hexa6on)


    Hello,

    I looked all over the forums and did not find any resolution to my problem with Lightbox2. My problem is that Lightbox2 wont work on my home page, which is a static page. But, it works on all single post and non-static pages. In my Lightbox2 settings, I have all the sections checked ON.

    I checked the code between the <head></head> tags for the static and non-static pages. They’re different.

    For the static pages, the head is as follows

    <head profile="http://gmpg.org/xfn/11">
    
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
    
    <title> World Bodybuilding & Fitness Federation</title>
    
    <link media="screen" type="text/css" href="http://localhost/wbff-wordpress/wp-content/themes/wbff/style.css" rel="stylesheet"/>
    <link href="http://localhost/wbff-wordpress/feed" title="World Bodybuilding &amp; Fitness Federation RSS Feed" type="application/rss+xml" rel="alternate"/>
    <link href="http://localhost/wbff-wordpress/feed/atom" title="World Bodybuilding &amp; Fitness Federation Atom Feed" type="application/atom+xml" rel="alternate"/>
    <link href="http://localhost/wbff-wordpress/xmlrpc.php" rel="pingback"/>
    
    <meta content="noindex,nofollow" name="robots"/>
    <link media="screen" type="text/css" href="http://localhost/wbff-wordpress/wp-content/plugins/nextgen-gallery/css/Black_Minimalism.css?ver=1.0.0" rel="stylesheet"/>
    <link href="http://localhost/wbff-wordpress/xmlrpc.php?rsd" title="RSD" type="application/rsd+xml" rel="EditURI"/>
    <link href="http://localhost/wbff-wordpress/wp-includes/wlwmanifest.xml" type="application/wlwmanifest+xml" rel="wlwmanifest"/>
    <meta content="1.1.0" name="NextGEN"/>
    <meta content="WordPress 2.7.1" name="generator"/>
    
    <style type="text/css" media="screen">#FlashID {visibility:hidden}</style></head>

    The non-static pages

    <head profile="http://gmpg.org/xfn/11">
    
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
    
    <title>Tannis Miller «  World Bodybuilding & Fitness Federation</title>
    
    <link media="screen" type="text/css" href="http://localhost/wbff-wordpress/wp-content/themes/wbff/style.css" rel="stylesheet"/>
    <link href="http://localhost/wbff-wordpress/feed" title="World Bodybuilding &amp; Fitness Federation RSS Feed" type="application/rss+xml" rel="alternate"/>
    <link href="http://localhost/wbff-wordpress/feed/atom" title="World Bodybuilding &amp; Fitness Federation Atom Feed" type="application/atom+xml" rel="alternate"/>
    <link href="http://localhost/wbff-wordpress/xmlrpc.php" rel="pingback"/>
    
    <meta content="noindex,nofollow" name="robots"/>
    <link media="screen" type="text/css" href="http://localhost/wbff-wordpress/wp-content/plugins/nextgen-gallery/css/Black_Minimalism.css?ver=1.0.0" rel="stylesheet"/>
    <link href="http://localhost/wbff-wordpress/xmlrpc.php?rsd" title="RSD" type="application/rsd+xml" rel="EditURI"/>
    <link href="http://localhost/wbff-wordpress/wp-includes/wlwmanifest.xml" type="application/wlwmanifest+xml" rel="wlwmanifest"/>
    <meta content="1.1.0" name="NextGEN"/>
    
    <script src="http://localhost/wbff-wordpress/wp-includes/js/comment-reply.js?ver=20081210" type="text/javascript"/>
    <meta content="WordPress 2.7.1" name="generator"/>
    
    <script type="text/javascript"> lb_path = "http://localhost/wbff-wordpress/wp-content/plugins/lightbox-2-wordpress-plugin/lightbox/"; lb_opacity= "0.8"; lb_resize= "7";</script>
    <link href="http://localhost/wbff-wordpress/wp-content/plugins/lightbox-2-wordpress-plugin/lightbox/css/lightbox.css" media="screen" type="text/css" rel="stylesheet"/>
    <script src="http://localhost/wbff-wordpress/wp-content/plugins/lightbox-2-wordpress-plugin/lightbox/js/prototype.js" type="text/javascript"/>
    <script src="http://localhost/wbff-wordpress/wp-content/plugins/lightbox-2-wordpress-plugin/lightbox/js/scriptaculous.js?load=effects,builder" type="text/javascript"/><script src="http://localhost/wbff-wordpress/wp-content/plugins/lightbox-2-wordpress-plugin/lightbox/js/effects.js" type="text/javascript"/><script src="http://localhost/wbff-wordpress/wp-content/plugins/lightbox-2-wordpress-plugin/lightbox/js/builder.js" type="text/javascript"/>
    <script src="http://localhost/wbff-wordpress/wp-content/plugins/lightbox-2-wordpress-plugin/lightbox/js/lightbox.js" type="text/javascript"/>
    <style type="text/css">#overlay {background-color:#000000;}</style>
    <style type="text/css" media="screen">#FlashID {visibility:hidden}</style></head>

    I can see why Lightbox2 isn’t working. But, why aren’t the javascript files being linked in the head inside of the static pages?

Viewing 1 replies (of 1 total)
  • Thread Starter hexa6on

    (@hexa6on)

    Hmm! I deactivated Lightbox2 and installed the Slimbox plugin. It magically fixed the problem. o_O

Viewing 1 replies (of 1 total)

The topic ‘Lightbox2 – Problem static pages’ is closed to new replies.