Subscribe via
Welcome, Guest. Please login or register.
Did you miss your activation email?
 OMNINOGGIN ForumPlugin SupportWP Greet BoxWP Great Box troubleshouting
Pages: [1]
Print
Author Topic: WP Great Box troubleshouting  (Read 2140 times)
RealHoney
Newbie
*
Posts: 2


View Profile WWW Email
« on: September 27, 2009, 05:11:29 AM »

Hi there. First of all I'll like to thank you for this beautiful plugin. I love'it.

But I have a little problem with this plugin. I've installed on one of my test domains and when I activate the plugin all my other scripts that use jQuerry (like tabbed content, menu hover effect etc.) don't work anymore. I don't know what is the problem so, if you are kind, please help me with some tips.

Thank you.

My test domain where I have the plugin installed is http://blog.graphix-design.ro/
Logged

Thaya
Administrator
Sr. Member
*****
Posts: 400



View Profile WWW Email
« Reply #1 on: October 03, 2009, 10:35:23 AM »

I just took a quick look at your site and the one thing that jumped at my was that both your theme and WP Greet Box is importing jQuery when I do a "view source" on your post.  For example, I see:

<script type="text/javascript" src="http://blog.graphix-design.ro/wp-content/themes/honey v1/js/jquery-1.3.2.min.js"></script>

and

<script type='text/javascript' src='http://blog.graphix-design.ro/wp-includes/js/jquery/jquery.js?ver=1.3.2'></script>

They are both jQuery libraries and importing it multiple times may cause a conflict.  I suggest you remove it from your theme (or add it the right way using wp_enqueu_script) 
Logged

RealHoney
Newbie
*
Posts: 2


View Profile WWW Email
« Reply #2 on: October 08, 2009, 02:35:20 AM »

I've tried to remove the importing line from theme, but nothing happened. And I don't know how to use the wp_enqueue_script correctly. On others themes it works perfectly, but not with this theme...
Logged

nbierma
Newbie
*
Posts: 3


View Profile WWW Email
« Reply #3 on: October 08, 2009, 02:03:57 PM »

I love this plugin! But I noticed that when I activated it, it overrode some style I had in there for the first letter (drop cap) and first line of my posts. I see other comments here on problems with overriding CSS and jQuery, but if there's a way I can use both this plugin and my CSS, I'd like to. Below is my code. Thanks,

Nathan B.
Grand Rapids, Mich.
www.nbierma.com

Code: [Select]
   <div class="no-excerpt"><?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
        </div><!-- end no-excerpt for dropcap -->
///
Code: [Select]
/*- Drop Cap from bit.ly/tinsology-dropcap -*/
.no-excerpt p:first-child:first-letter {
float:left;
background-color: #eeeeee;
line-height:30px;
padding: 5px;
color: #5eb7cb;
font-weight: bold;
font-size:40px;
}

.no-excerpt p:first-child:first-line{
font-variant: small-caps;
}

.no-excerpt p:first-child:after {
content: "";
display: block;
height: 0;
clear: both;
visibility: hidden;
}

Logged

Thaya
Administrator
Sr. Member
*****
Posts: 400



View Profile WWW Email
« Reply #4 on: October 12, 2009, 09:21:08 AM »

I love this plugin! But I noticed that when I activated it, it overrode some style I had in there for the first letter (drop cap) and first line of my posts. I see other comments here on problems with overriding CSS and jQuery, but if there's a way I can use both this plugin and my CSS, I'd like to. Below is my code. Thanks,

Nathan B.
Grand Rapids, Mich.
www.nbierma.com

Code: [Select]
   <div class="no-excerpt"><?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
        </div><!-- end no-excerpt for dropcap -->
///
Code: [Select]
/*- Drop Cap from bit.ly/tinsology-dropcap -*/
.no-excerpt p:first-child:first-letter {
float:left;
background-color: #eeeeee;
line-height:30px;
padding: 5px;
color: #5eb7cb;
font-weight: bold;
font-size:40px;
}

.no-excerpt p:first-child:first-line{
font-variant: small-caps;
}

.no-excerpt p:first-child:after {
content: "";
display: block;
height: 0;
clear: both;
visibility: hidden;
}


nbierma, just copy the contents of plugins/wp-greet-box/css/wp-greet-box.css into your theme's style.css, then disabled wp-greet-box.css management in WP Greet Box advanced options.  You can then play around and make the CSS work with your theme's CSS.
Logged

nbierma
Newbie
*
Posts: 3


View Profile WWW Email
« Reply #5 on: October 26, 2009, 10:06:00 AM »

OK, I tried that and had the same problem. I looked in the code and realized the problem; the greet box is inserting itself right after my "no-excerpt" begins (which is the class I use for the text on a single page, so called because it's not an excerpt). My drop-cap style will only try to apply to the first sentence of the "no-excerpt" div.

Code: [Select]
<div class="no-excerpt">
<div id="greet_block">
<noscript><div class="greet_block"><div class="greet_text">
[...]
</noscript>
</div>
<p>Lorem ipsum ...

Is there a way to get the Greet Box to appear before my 'no-excerpt' div?

Thanks!

Nathan
Logged

Thaya
Administrator
Sr. Member
*****
Posts: 400



View Profile WWW Email
« Reply #6 on: October 26, 2009, 05:38:01 PM »

Just use the manual insertion (see docs on plugin page) method to place the greet box wherever you want in your theme.
Logged

nbierma
Newbie
*
Posts: 3


View Profile WWW Email
« Reply #7 on: October 27, 2009, 07:25:15 AM »

ah, got it, thanks. for the future reference of others, here's the relevant bit from the readme:

= Can I customize where I want to place my greeting message? =
Yes!  You will have to disable the auto insert feature in General
Configurations.  Next, copy the following code to your desired location in any
of the theme files:
Code: [Select]
  <?php if(function_exists('wp_greet_box')){wp_greet_box();} ?>
Logged

Pages: [1]
Print
Jump to: