Title: Adding outside store to wordpress theme
Last modified: August 22, 2016

---

# Adding outside store to wordpress theme

 *  Resolved [SEspider](https://wordpress.org/support/users/sespider/)
 * (@sespider)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/adding-outside-store-to-wordpress-theme/)
 * I’m trying to do something that seems very simple. I’ve seen it done on other
   WordPress Sites and badly need it on my site.
 *  How do I **embed** my RedBubble, TeePublic, and/or SpreadShirt stores into my
   WordPress (OneTone) template?
 *  Thanks in advance.

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/adding-outside-store-to-wordpress-theme/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/adding-outside-store-to-wordpress-theme/page/2/?output_format=md)

 *  Thread Starter [SEspider](https://wordpress.org/support/users/sespider/)
 * (@sespider)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/adding-outside-store-to-wordpress-theme/#post-5779958)
 * I’ve tried using this link for support but, being a WP Noob, it just goes over
   my head. I’m officially lost.
    [](http://codex.wordpress.org/Using_Javascript#Creating_a_Multiple_Script_File)
 * This is the code I need to add to my site.
 *     ```
       <script type="text/javascript" src="http://www.redbubble.com/assets/external_portfolio.js"></script>
       <script id="rb-xzfcxvzx" type="text/javascript">new RBExternalPortfolio('www.redbubble.com', 'sespider', 3, 3).renderIframe();</script>
       ```
   
 * Can anyone help me, please?
    It may need to be noted that I’m using the OneTone
   theme and would like to add the code to a section of the theme and not a blog.
   Thanks
 *  [ikaring](https://wordpress.org/support/users/ikaring/)
 * (@ikaring)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/adding-outside-store-to-wordpress-theme/#post-5779960)
 * I think you need to modify index.php of Onetone theme.
 * Before that, could you specify which section you want to add the store items?
   
   There are Section1 to 6 in Onetone Options page of admin panel. And is it before
   the section content or after?
 * It is recommended to make child theme, and duplicate index.php to the child theme
   and edit it.
 *  Thread Starter [SEspider](https://wordpress.org/support/users/sespider/)
 * (@sespider)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/adding-outside-store-to-wordpress-theme/#post-5779965)
 * I’ve added more sections to my theme then the default. Which you can see here:
   
   [http://www.sespiderproductions.com](http://www.sespiderproductions.com)
 *  I plan to add a Tab Panel to the **Stores** section and place the RB code in
   one of those tabs. But until then, I’ll like to add the code below my store links.
   Not a difficult thing to do, I’m sure. I just need to get it to work.
 * On a Side Note: I’m trying to add a outside WordPress link to the main nav bar.
   That doesn’t seem to be possible. Nor is it possible to add another page.
 *  I haven’t a clue how to add a “Child Theme” or a Sub Domain via WordPress. I’ll
   have to look that up.
 *  [ikaring](https://wordpress.org/support/users/ikaring/)
 * (@ikaring)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/adding-outside-store-to-wordpress-theme/#post-5779966)
 * In that case, it is better using shortcode. Add the following code to functions.
   php of the theme.
 *     ```
       function my_rb_js_handler($atts, $content=null) {
       $str=<<<eot
       <script type="text/javascript" src="http://www.redbubble.com/assets/external_portfolio.js"></script>
       <script id="rb-xzfcxvzx" type="text/javascript">new RBExternalPortfolio('www.redbubble.com', 'sespider', 3, 3).renderIframe();</script>
       eot;
       	return $str;
       }
       add_shortcode('rb', 'my_rb_js_handler');
       ```
   
 * You can put `[rb]` anywhere in section and that’s it.
 * Why I recommend child theme is that above shortcode in functions.php will be 
   deleted after theme update.
    Child theme setup is not that difficult, so read
   the codex and just put above code in functions.php of the **child** theme. [http://codex.wordpress.org/Child_Themes](http://codex.wordpress.org/Child_Themes)
 * About main nav bar:
    You can add menu items only after sections links. In menu
   settings page, select your menu and check theme location as Home Page Header 
   Menu.
 *  Thread Starter [SEspider](https://wordpress.org/support/users/sespider/)
 * (@sespider)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/adding-outside-store-to-wordpress-theme/#post-5779968)
 * **Thank you so much for your help.**
    Now I have a better idea of how to make
   custom shortcodes. And your solution worked.
 *  I’ll look into the child theme solution soon.
 * Sadly, the Menu section does not list any menus Including the one from the theme.
   I’ve not touched this section in fear of messing something up.
    Here’s a screenshot
   [http://i.imgur.com/94WYfr7.jpg](http://i.imgur.com/94WYfr7.jpg)
 * Little back story about me.
    I’m coming from 4 years of not working on websites.
   When I did, it was normal html with very little css. Back when Flash was the 
   go to feature for sites. And I wrote everything by hand. With the new html5, 
   etc, I get lost easily. Please be patient with me.
 *  [ikaring](https://wordpress.org/support/users/ikaring/)
 * (@ikaring)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/adding-outside-store-to-wordpress-theme/#post-5779969)
 * No problem at all!
 * You don’t need to worry about theme related menus. They are handled by header.
   php of the theme according to the section settings.
 * Just fill in “Menu Name” and click “Create Menu”.
    Now you can add menu items
   and there should be checkbox on bottom of right column. Check “Home Page Header
   Menu” there and save menu.
 *  Thread Starter [SEspider](https://wordpress.org/support/users/sespider/)
 * (@sespider)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/adding-outside-store-to-wordpress-theme/#post-5779971)
 * Thank You, Again, Evan.
 *  Something seems to be off.
    I created a menu called “OutsideLinks” I then clicked
   on the “Links” tab, created a link to my youtube channel (to replace Videos if
   works), and added it to the menu. Then saved of course. Put clicking the button
   on my site only brings up a lightbox. How do I get it to open the link in a new
   tab/window instead of a lightbox? It only seems to do this with YouTube. But 
   it still only opens in the same window.
 * Once again, I can’t thank you enough for your help.
 *  [ikaring](https://wordpress.org/support/users/ikaring/)
 * (@ikaring)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/adding-outside-store-to-wordpress-theme/#post-5779972)
 * I think your link url should be following.
    [https://www.youtube.com/watch?v=fSoSipSFPGA&list=PLn9N9jhgkJ3L6Ud_4FSZcb-xSoExmiUIe&index=1](https://www.youtube.com/watch?v=fSoSipSFPGA&list=PLn9N9jhgkJ3L6Ud_4FSZcb-xSoExmiUIe&index=1)
   or [https://www.youtube.com/playlist?list=PLn9N9jhgkJ3L6Ud_4FSZcb-xSoExmiUIe](https://www.youtube.com/playlist?list=PLn9N9jhgkJ3L6Ud_4FSZcb-xSoExmiUIe)
 * To open link in a new tab/window:
    On right top in menu settings page, there 
   should be “Display Option” button or somekind ( I don’t know english label cos
   I use Japanese ). Click that and panel expands. Check “Link target” ( I guess..).
   Now there is a checkbox in your YOUTUBE menu item section.
 * BTW, nice drawings!
 *  Thread Starter [SEspider](https://wordpress.org/support/users/sespider/)
 * (@sespider)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/adding-outside-store-to-wordpress-theme/#post-5779973)
 * Activated the “Open link in a new window/tab” and it’s working but, once again,
   not with YouTube.
    YouTube just does not seem to like my theme. lol
 * And thanks for the complement
 *  [ikaring](https://wordpress.org/support/users/ikaring/)
 * (@ikaring)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/adding-outside-store-to-wordpress-theme/#post-5779974)
 * That’s odd..
    Did you changed the url? In my test environment, both urls works
   fine, and opened in new tab.
 *  Thread Starter [SEspider](https://wordpress.org/support/users/sespider/)
 * (@sespider)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/adding-outside-store-to-wordpress-theme/#post-5779975)
 * I’ll change it again so you can see it. Hang on a sec….
 * –EDIT–
    Here’s a screen capture [http://i.imgur.com/aB6ldcv.jpg](http://i.imgur.com/aB6ldcv.jpg)
 * I need it to open to the channel, not the playlist.
    But neither is working. 
   Page is live, if you’ll like to see what it’s doing. [http://sespiderproductions.com/](http://sespiderproductions.com/)
 *  [ikaring](https://wordpress.org/support/users/ikaring/)
 * (@ikaring)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/adding-outside-store-to-wordpress-theme/#post-5779976)
 * It seems some javascript changes the url of youtube.
    In HTML source, it’s `https://
   www.youtube.com/sespider`, but rendered url is `https://www.youtube.com/embed/
   sespider`.
 * YouTube Channel plugin looks suspicious to me. Pls try disable this plugin or
   change some settings of it.
 *  Thread Starter [SEspider](https://wordpress.org/support/users/sespider/)
 * (@sespider)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/adding-outside-store-to-wordpress-theme/#post-5779977)
 * I had installed a number of YouTube plugins and widgets, in hopes of getting 
   one to work with the theme. YouTube Channel plugin was the only one that came
   close (with minor format issues). While deactivating them, I’ve found the code
   to one of the other plugins to work.
 * I’m thinking it might be a lightbox issue because after deactivationg all of 
   the YouTube plugins, the lightbox still tried to open the link. It ended up doing
   what it’s currently doing.
 * I want to thank you again for your help. I’ve learned so much today. It’s almost
   3am here so I’m going to call it a night and remove the youtube link after you
   reply back.
    I’ve already reactivated the working YouTube plugin. It’ll have 
   to work for now. As a thank you, is there anything art related I may be able 
   to help you with? For free of course.
 *  Thread Starter [SEspider](https://wordpress.org/support/users/sespider/)
 * (@sespider)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/adding-outside-store-to-wordpress-theme/#post-5779978)
 * Great News!
    I wasn’t able to sleep until I found what was causing the issue.
   It turned out to be the HUGE IT Lightbox plugin. For some odd reason, it kept
   wanting to embed any and all YouTube links.
 * I’ll wait until you reply before I mark this topic as solved.
    Once again, Thank
   You and let me know if there’s anything I can help you with anything art related(
   logo, banner, etc).
 *  [ikaring](https://wordpress.org/support/users/ikaring/)
 * (@ikaring)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/adding-outside-store-to-wordpress-theme/#post-5779980)
 * Congratulation! Happy to hear that.
 * I do this for my study and training on WordPress and English, so never mind.
   
   It is fun communicating with someone abroad. Thanks for your proposal, though.(
   I think it might violate the forum rule if I get any reward. It’s just voluntary
   thing. )

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/adding-outside-store-to-wordpress-theme/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/adding-outside-store-to-wordpress-theme/page/2/?output_format=md)

The topic ‘Adding outside store to wordpress theme’ is closed to new replies.

## Tags

 * [embed](https://wordpress.org/support/topic-tag/embed/)
 * [spreadshirt](https://wordpress.org/support/topic-tag/spreadshirt/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 18 replies
 * 2 participants
 * Last reply from: [SEspider](https://wordpress.org/support/users/sespider/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/adding-outside-store-to-wordpress-theme/page/2/#post-5780019)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
