Hi there! Hope someone can help me out - I am new to using WordPress and am trying to bring a former site into the WordPress templates. I have had great success so far but with one big hang up. The old site uses flexcroll.js with custom css to create a custom scroll bar for the main content area.
I have tried many different ways to include the script into my header.php file of the theme. With the former html document it could just be added in with the basic
<script type='text/javascript' src="flexcroll.js"></script>
Through wordpress I have tried this basic script add as well as <?php wp_enqueue_script(‘flexcroll’, 'myurlpath/flexcroll.js); ?>
Nothing seems to be working and I have been trying to search forums and things for hours. Has anyone else had success using flexcroll with WordPress who can help me, or anyone who just knows what I am doing wrong?
The content that needs to be scrolled is found on various pages in the pageContentText div, and my page.php is pretty basic:
<?php get_header(); ?>
<div id="welcome">
<div id="pageContent">
<div id="pageContentText">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php the_content(__('(more...)')); ?>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
</div>
</div>
</div>
<?php get_footer(); ?>
I am also running lightbox-plus and add-lightbox plugins in case those are making a difference?
Any help greatly appreciated!