Featured Content Gallery | WordPress Plugin | iePlexus

FCG not working - empty box

New releases, ideas for the future, and known issues

FCG not working - empty box

PostBy sammu on Thu Sep 08, 2011 5:17 am

Hi there!

First of all let me say that I've read almost every article here regarding the "empty box" subject but I haven't had any sucess solving it =(

It just doesn't work on my Wordpress website (http://smpt.site11.com) with the teme I have (based on Engamer). If I change the theme it does work, but I really need it to work in this theme.

I tryed the jQuery no conflict script with no sucess, changed the "<?=" and "?>" to "<?php echo" and ";?>" in the jd.gallery.js file and again it didn't work. I'am all out of ideias by now.

This is the header.php code:

Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<meta name="description" content="<?php bloginfo('description') ?>" />
<title><?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' :'; } ?> <?php bloginfo('name'); ?></title>
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" title="laranja_sammu" />
<link rel="alternate stylesheet" type="text/css" href="/pila/wp-content/themes/engamer/roxo_ice.css" title="roxo_ice">
<!-- Folhas de Estilos Alternativas-->

<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

<script type="text/javascript"><!--//--><![CDATA[//><!--
sfHover = function() {
   if (!document.getElementsByTagName) return false;
   var sfEls1 = document.getElementById("catmenu").getElementsByTagName("li");
   for (var i=0; i<sfEls1.length; i++) {
      sfEls1[i].onmouseover=function() {
         this.className+=" sfhover1";
      }
      sfEls1[i].onmouseout=function() {
         this.className=this.className.replace(new RegExp(" sfhover1\\b"), "");
      }
   }
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
//--><!]]></script>
<?php

wp_enqueue_script('Estilos', get_stylesheet_directory_uri() .'/js/switchestilos.js');
wp_enqueue_script('jquery');

?>
<script type="text/javascript">
jQuery.noConflict();
</script>


<?php wp_get_archives('type=monthly&format=link'); ?>
<?php //comments_popup_script(); // off by default ?>
<?php
if ( is_singular() ) wp_enqueue_script( 'comment-reply' );
wp_head(); ?>

</head>
<body>
<div id="wrapper">



.... and the index.php til the FCG call code


Code: Select all
<?php get_header(); ?>

<div id="content">
<?php include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>



If you could help me, I'd really aprecciate!

Thanks in advance!
User avatar
sammu
 
Posts: 3
Joined: Thu Sep 08, 2011 4:59 am
Location: Porto, Portugal

Re: FCG not working - empty box

Thank you for using the Featured Content Gallery Forum
 

Re: FCG not working - empty box

PostBy admin on Thu Sep 08, 2011 7:16 am

try to add this line of code in your theme footer.php before </body> tag
Code: Select all
<script type="text/javascript">jQuery.noConflict();</script>
Yelena Khamidullina
Web Applications Developer, iePlexus

1. Check settings to exclude fcg-YOU conflict
2. Try to turn off all your plugins at once to exclude fcg-other plugin conflict
3. Try default theme to exclude fcg-theme conflict
4. Post in this forum to involve me in your troubleshooting. URL is required
User avatar
admin
Site Admin
 
Posts: 4789
Joined: Fri Jan 16, 2009 9:29 am
Location: Seattle, WA

Re: FCG not working - empty box

PostBy sammu on Thu Sep 08, 2011 8:30 am

It worked =) Thank you so much!

I thought I had to add the jQuery.noConflict() before the call FCG function!

Thanks once again for your help.
User avatar
sammu
 
Posts: 3
Joined: Thu Sep 08, 2011 4:59 am
Location: Porto, Portugal

Re: FCG not working - empty box

PostBy admin on Thu Sep 08, 2011 2:30 pm

yw
Yelena Khamidullina
Web Applications Developer, iePlexus

1. Check settings to exclude fcg-YOU conflict
2. Try to turn off all your plugins at once to exclude fcg-other plugin conflict
3. Try default theme to exclude fcg-theme conflict
4. Post in this forum to involve me in your troubleshooting. URL is required
User avatar
admin
Site Admin
 
Posts: 4789
Joined: Fri Jan 16, 2009 9:29 am
Location: Seattle, WA


Return to Development, Improvement, and Conflicts

Who is online

Users browsing this forum: No registered users and 0 guests