WordPress.org

Ready to get started?Download WordPress

Forums

prettyPhoto Media stopped working (2 posts)

  1. maresj
    Member
    Posted 4 months ago #

    Dear forum members,

    I made a custom WordPress theme and tried to make prettyPhoto Media working. At first it did not work because of missing hooks wp_footer() and wp_head(). Then I added wp_footer() and everything worked until I added wp_head() - now it does not. jQuery seems to be loaded correctly. Could you please help me?

    Head section contains:

    <!-- This site is optimized with the Yoast WordPress SEO plugin v1.4.24 - http://yoast.com/wordpress/seo/ -->
    <title>3D loga - RAP - Reklama a propagace</title>
    <link rel="canonical" href="http://rap-reklama.cz/3d-loga/" />
    <meta property="og:locale" content="cs_CZ" />
    <meta property="og:type" content="article" />
    <meta property="og:title" content="3D loga - RAP - Reklama a propagace" />
    <meta property="og:description" content="3D Loga Vyrábíme z plastu, plexiskla, extrudovaného a pěnového polystyrenu s širokým uplatnění například v recepcích firem, prodejnách, výstavních stáncích i exteriérech." />
    <meta property="og:url" content="http://rap-reklama.cz/3d-loga/" />
    <meta property="og:site_name" content="RAP - Reklama a propagace" />
    <meta property="article:published_time" content="2014-02-01T20:01:51+00:00" />
    <meta property="article:modified_time" content="2014-03-07T20:34:29+00:00" />
    <!-- / Yoast WordPress SEO plugin. -->
    
    <link rel='stylesheet' id='prettyphoto-css'  href='http://rap-reklama.cz/wp-content/plugins/prettyphoto-media/css/prettyPhoto.css?ver=3.1.4' type='text/css' media='screen' />
    <link rel='stylesheet' id='contact-form-7-css'  href='http://rap-reklama.cz/wp-content/plugins/contact-form-7/includes/css/styles.css?ver=3.7.1' type='text/css' media='all' />
    <script type='text/javascript' src='http://code.jquery.com/jquery-latest.min.js'></script>
    <link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://rap-reklama.cz/xmlrpc.php?rsd" />
    <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://rap-reklama.cz/wp-includes/wlwmanifest.xml" />
    <meta name="generator" content="WordPress 3.8.1" />
    <link rel='shortlink' href='http://rap-reklama.cz/?p=8' />
    	<style type="text/css">.recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}</style>
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800&subset=latin,cyrillic,cyrillic-ext,latin-ext' rel='stylesheet' type='text/css' />
    
    <!-- Include the plugin *after* the jQuery library -->
    <script src="slider/js/bjqs-1.3.min.js"></script>
    
    <!-- Include the basic styles -->
    <link type="text/css" rel="Stylesheet" href="slider/bjqs.css" />
    
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!--[if lt IE 9]>
    	<script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
    <![endif]-->
    
    <link rel="stylesheet" href="http://rap-reklama.cz/wp-content/themes/rap/style.css" type="text/css" media="screen" />

    Footer then contains:

    <script type='text/javascript' src='http://rap-reklama.cz/wp-content/plugins/prettyphoto-media/js/jquery.prettyPhoto.min.js?ver=3.1.4'></script>
    <script type='text/javascript' src='http://rap-reklama.cz/wp-content/plugins/contact-form-7/includes/js/jquery.form.min.js?ver=3.49.0-2014.02.05'></script>
    <script type='text/javascript'>
    /* <![CDATA[ */
    var _wpcf7 = {"loaderUrl":"http:\/\/rap-reklama.cz\/wp-content\/plugins\/contact-form-7\/images\/ajax-loader.gif","sending":"Odes\u00edl\u00e1m..."};
    /* ]]> */
    </script>
    <script type='text/javascript' src='http://rap-reklama.cz/wp-content/plugins/contact-form-7/includes/js/scripts.js?ver=3.7.1'></script>
    <script>
    jQuery(function($) {
    $('a[rel^="prettyPhoto"]').prettyPhoto({ theme: 'light_rounded' });
    });
    </script>

    Kindly thank you for your advices.

    Best wishes,
    Jan

  2. maresj
    Member
    Posted 4 months ago #

    Nobody knows, what could possibly prevent prettyPhoto Media from working? :)

Reply

You must log in to post.

About this Topic