Forum Replies Created
-
AuthorPosts
-
mparksMember
Hey there,
Update... so I have installed this theme on a new site to play around with this show excerpt feature. I finally got it to work! However, what I am wanting it to do is a little different. I basically set the theme up like the demo version off the StudioPress site. If you go to the site where I want it to work, http://ca.ei2.org Down under the slider, I want the posts that are listed in the 3 panels to have this hover/excerpt feature. Any suggestion on how to do that would be greatly appreciated. Thanks so much for the continued help on this!
Kimberly
mparksMemberI have checked the source and this is at the very bottom of the code... so it does appear to be running.
The site is http://ca.ei2.org
Thanks for the continued help!
<script type='text/javascript' src='http://ca.ei2.org/wp-content/themes/executive-pro/js/jquery.powertip.min.js?ver=4.2.2'></script>
<script type='text/javascript' src='http://ca.ei2.org/wp-content/themes/executive-pro/js/powertip-init.js?ver=1.0.0'></script>mparksMemberI am still having trouble getting this to work... I have replaced what you said in the last post, but it's still not working. No error or anything, just does not show the excerpt on hover.
Any idea on something I may need to check?
Thanks so much for the continue help on this!
KimberlymparksMemberThis was the code in the functions.php pertaining to this in the OLD site that we are updgrading. It used the old Crystal theme. Maybe it helps to see how it behaved on there:
add_action('wp_head','my_add_qtip');
function my_add_qtip() { ?>
<script type="text/javascript" src="/wp-content/themes/crystal/qtip/jquery.qtip-1.0.0-rc3.min.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($){$('#home-bottom div.post p').css('display', 'none');
$('#home-bottom div.post').each(function(index) {
if( $(this).children("p").text() ) {
$(this).children("h2").children("a" ).attr('title', $(this).children("p").text() + " ..." );
} else {
$(this).children("h2").children("a" ).removeAttr('title');
}
});
$('#home-bottom div.post a[title]').qtip({
show: 'mouseover',
hide: 'mouseout',
position: {
corner: { target: 'bottomMiddle', tooltip: 'topLeft' }
},
style: { name: 'cream' }
})});
</script><?php
mparksMemberThank you so much for all the help! I have done exactly as you stated on your site and I can't seem to get it. I did notice there is already some code similar to yours in the functions.php file. If I comment it out, it kills the site. This is what is already existing in the functions.php:
//* Enqueue Scripts
add_action( 'wp_enqueue_scripts', 'executive_load_scripts' );
function executive_load_scripts() {
/*
wp_enqueue_script( 'executive-responsive-menu', get_bloginfo( 'stylesheet_directory' ) . '/js/responsive-menu.js', array( 'jquery' ), '1.0.0' );
*/
wp_enqueue_style( 'dashicons' );wp_enqueue_style( 'google-font', '//fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700', array(), CHILD_THEME_VERSION );
}
One other thing, on the old site they did not acutally use the 'excerpt' field to fill the tool tip, it was just pulling the first x amount of characters from the post. I'm sorry I used the wrong terminology... it would be great if it could do that, but if it's too much trouble it can stay using the excerpt field.
Thanks again for all the help!
KimberlymparksMemberThanks for the response. I am trying to make it like a tooltip would look where the excerpt just pops up on hover, not where it actual fits in into the page.
-
AuthorPosts