Jump to content


These Forums Are Now Read-Only


For TubePress support, please post a question here or open a support ticket and we will be glad to assist.


Photo

Different Theme On Different Pages


Best Answer eric, 13 May 2015 - 10:23 PM

You can indeed use the theme option in a shortcode, with the following caveats:

  • If you haven't already, I highly recommend first reviewing our new theme documentation for WordPress or standalone PHP users.
     
  • You should supply as its value the title of a theme, as defined in its manifest file. So for instance if you have a theme with the title tubepress/foobar, you could use the following shortcode:
    [tubepress theme="tubepress/foobar"]
    If you're using legacy (anything before version 4.0.0) TubePress themes, your theme's title will be prefixed with unknown/legacy-. For instance if you are using a TubePress 3.x.x theme called mytheme, you could use the following:
    [tubepress theme="unknown/legacy-mytheme"]
    
  • Only the theme selection that is saved in persistent storage (i.e. on the WordPress options page or, for standalone PHP users, the database.json file) will have its CSS and JS injected into the page. All other themes that you use will work just fine, but you will only be able to take advantage of their templates.

Does that answer your question? Themes are powerful but also somewhat complex, so I apologize if I'm not explaining the concepts very well. Let us know!

Go to the full post


  • Please log in to reply
4 replies to this topic

#1 dan121

dan121

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 11 May 2015 - 05:16 PM

I'm trying to change the theme that Tubepress uses on different pages, but can't get it to work with the latest version. I used to be able to use [tubepress theme="xxx"] to specify which theme I wanted...but that no longer appears to work. Any ideas? 



#2 brandon

brandon

    Advanced Member

  • TubePress Staff
  • 1989 posts

Posted 11 May 2015 - 09:02 PM

Hello Dan,

 

We have a similar request from another customer. Please standby while I wait for an answer from our developers.

 

Thanks!


Want a faster, more personalized support experience? Open a ticket with us! We will be gradually phasing out forum-based support in favor of a proper ticketing system. Please help us help you!


#3 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 13 May 2015 - 10:23 PM   Best Answer

You can indeed use the theme option in a shortcode, with the following caveats:

  • If you haven't already, I highly recommend first reviewing our new theme documentation for WordPress or standalone PHP users.
     
  • You should supply as its value the title of a theme, as defined in its manifest file. So for instance if you have a theme with the title tubepress/foobar, you could use the following shortcode:
    [tubepress theme="tubepress/foobar"]
    If you're using legacy (anything before version 4.0.0) TubePress themes, your theme's title will be prefixed with unknown/legacy-. For instance if you are using a TubePress 3.x.x theme called mytheme, you could use the following:
    [tubepress theme="unknown/legacy-mytheme"]
    
  • Only the theme selection that is saved in persistent storage (i.e. on the WordPress options page or, for standalone PHP users, the database.json file) will have its CSS and JS injected into the page. All other themes that you use will work just fine, but you will only be able to take advantage of their templates.

Does that answer your question? Themes are powerful but also somewhat complex, so I apologize if I'm not explaining the concepts very well. Let us know!



#4 dan121

dan121

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 15 May 2015 - 10:48 AM

Thanks, that got me on the right track. I was a bit confused because the theme option no longer appears on the Core Options page: https://docs.tubepre...tions/core.html.



#5 mudar

mudar

    Newbie

  • Members
  • Pip
  • 9 posts
  • LocationMontreal

Posted 03 July 2015 - 11:14 AM

Hi @eric,

 

I have a similar problem, but for using different themes on the same page

[tubepress playlistValue="PL123465" galleryId="100" theme="tubepress/foobar"]
[tubepress playlistValue="PL654321" galleryId="200" theme="tubepress/fubar"]

Whatever I try, the theme of the first gallery would override the second one:

  • my 2 custom themes load ok (individually) using shortcode
  • also tried with 2 tubpress themes
  • tubepress cache disabled/enabled
  • api cache disabled/enabled
  • using a theme for just one gallery, hoping the other one would revert to the default

I am using tubepress_pro_4_1_10. This used to work fine with tubepress 3.1.1