Jump to content


Photo
voyant

Add Starbar into HTML of Custom Post Type

starbar html custom post type

  • Please log in to reply
2 replies to this topic

#1 dawsonbarber

dawsonbarber

    Super Member

  • Members

  • 168 posts

Posted 18 August 2014 - 08:16 PM

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



#2 tmeister

tmeister

    Super Member

  • Members

  • 228 posts
  • LocationValle de Bravo, México
  • Country: Country Flag

Posted 19 August 2014 - 06:53 PM

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



#3 dawsonbarber

dawsonbarber

    Super Member

  • Members

  • 168 posts

Posted 22 August 2014 - 11:23 PM

Thanks, Enrique

 

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

 

Cheers

 

Dawson







Also tagged with one or more of these keywords: voyant, starbar, html, custom post type