• 0

voyant Add Starbar into HTML of Custom Post Type


Question

Posted · Report post

Hi Enrique

 

I want to add a Starbar to a Custom Post Type.

 

I've tried to simply copy/paste the full section code from the source code, but the animation doesn't happen.

 

Any idea on what I'm missing/doing wrong?

Cheers

 

Dawson

Share this post


Link to post
Share on other sites

2 answers to this question

  • 0

Posted · Report post

If you are moving the section location you need to copy the javascript as well to match the new path.

 

Take a look at this:

function section_styles(){

		wp_enqueue_script( 'starbar', $this->base_url.'/starbar.js', array( 'jquery' ), pl_get_cache_key(), true );

	}

That starbar.js file path

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thanks, Enrique

 

I'll give it a go and let you know how I go.

 

Cheers

 

Dawson

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now