Jump to content


Photo
- - - - -

Shortcode in the header


  • Please log in to reply
9 replies to this topic

#1 pehja

pehja

    Advocate

  • Members


  • 556 posts
  • LocationSweden
  • Framework Version:Pagelines v2.4.3 and DMS
  • Country: Country Flag

Posted 09 July 2012 - 05:08 PM

Hi! I am trying to put a shortcode in the header. I am creating a shop and would like to put a shortcode snippet from jigoshop in the header. I am not so good at the hook thing. But if someone could point me in the right direction. This is the code [jigoshop-mini-cart] And I would like it to be visible on all pages.

#2 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 09 July 2012 - 07:07 PM

You can add a sidebar to the header in Drag & Drop, then, using a text widget in that sidebar, apply your shortcode... However, it will not be aligned with the branding or menus. It will be on its own with lots of padding.

#3 pehja

pehja

    Advocate

  • Members


  • 556 posts
  • LocationSweden
  • Framework Version:Pagelines v2.4.3 and DMS
  • Country: Country Flag

Posted 14 July 2012 - 09:31 PM

Hi, this topic should be in framework not platform pro. Should I make a new thread? Question is, I would like som help adding a hook in the header to put a cart-shortcode. Could this be done?

#4 Danny

Danny

    Is Awesome!

  • Moderators
  • 15047 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 15 July 2012 - 12:25 PM

Hi Peter, I've moved the topic for you. What is this cart code, where is it coming from ?

#5 pehja

pehja

    Advocate

  • Members


  • 556 posts
  • LocationSweden
  • Framework Version:Pagelines v2.4.3 and DMS
  • Country: Country Flag

Posted 16 July 2012 - 08:42 AM

HI Danny! It is a Jigoshop cart code, a widget i have bought. [jigoshop-mini-cart]. I can probably find a way, and leran how. But there are so many things I want to learn and there??s just not enough time at this point.

#6 Danny

Danny

    Is Awesome!

  • Moderators
  • 15047 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 16 July 2012 - 09:24 AM

Hi Peter, I don't think you can add shortcode to a hook, if you wish to use the shortcode you will need to use the Universal Sidebar.

#7 pehja

pehja

    Advocate

  • Members


  • 556 posts
  • LocationSweden
  • Framework Version:Pagelines v2.4.3 and DMS
  • Country: Country Flag

Posted 16 July 2012 - 11:23 AM

Ok Thanks absolutely perfekt! One more thing though Could I move the widget to the far right?

#8 pehja

pehja

    Advocate

  • Members


  • 556 posts
  • LocationSweden
  • Framework Version:Pagelines v2.4.3 and DMS
  • Country: Country Flag

Posted 20 July 2012 - 10:14 AM

@Danny, no ?

#9 Danny

Danny

    Is Awesome!

  • Moderators
  • 15047 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 20 July 2012 - 10:30 AM

Hi Peter, Yes you can, you need to apply CSS to the Universal sidebar. Something like: position:absolute; right:0 It's difficult to assist you without a link to the site.

#10 pehja

pehja

    Advocate

  • Members


  • 556 posts
  • LocationSweden
  • Framework Version:Pagelines v2.4.3 and DMS
  • Country: Country Flag

Posted 20 July 2012 - 03:49 PM

Please Login or Register to see this Hidden Content