• Hello,

    we are developing a custom wordpress theme for our customer. We pass data from our Custom Fields Plugin to Timber to our twig rendering files. Now if i follow the documentation and pass [instagram-feed] on top of the website nothing appears. If i choose an other theme (not our custom developed one) then i see the instagram feed.

    What am i missing? Is there anything i have to pass as a variable? Can i write the instagram feed programmatically inside my twig file?

    I would appreciate any answer ??
    Thanks!

    • This topic was modified 4 years, 11 months ago by supamario.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Craig at Smash Balloon

    (@craig-at-smash-balloon)

    Hey supamario,

    Have you tried the steps in this FAQ perhaps?

    https://smashballoon.com/my-photos-wont-load/

    Otherwise if you’re able to add the theme and feed to a live page somewhere I can tell you what needs to be done more specifically.

    Let me know if you need more help!

    – Craig

    Thread Starter supamario

    (@supamario)

    Thank you very much for replying ??

    If i type:

    sb_init();

    into the chrome console i get:

    Uncaught ReferenceError: sb_init is not defined
    at <anonymous>:1:1

    So due to the docs the js files are not loaded correctly, right?

    • This reply was modified 4 years, 11 months ago by supamario.
    • This reply was modified 4 years, 11 months ago by supamario.
    Plugin Author Craig at Smash Balloon

    (@craig-at-smash-balloon)

    Yes that is correct. I would imagine that wp_footer() PHP function is missing from the page. Normally this is included in a footer.php file that is loaded with every page template.

    Thread Starter supamario

    (@supamario)

    Ok, the problem has something to do with timber.
    We use Timber to dispatch our data to timber templates. If i use a php file for the site it is working. So currently i am looking for some kind of timber widget to call php functions or to run php methods inside twig templates.

    Plugin Author Craig at Smash Balloon

    (@craig-at-smash-balloon)

    Ahh another option would be to manually add the files in the HTML. Is that possible with Timber? You would want to add this HTML (replace “mywebsite.com” with the proper domain)

    <link rel='stylesheet' id='sb_instagram_styles-css'  href='https://mywebsite.com/wp-content/plugins/instagram-feed/css/sb-instagram.min.css?ver=2.1.4' media='all' />
    <script src='https://mywebsite.com/wp-content/plugins/instagram-feed/js/sb-instagram.min.js?ver=2.1.4'></script>

    supamario

    This plugin work only if you have registered a sidebar in your function.php file of your custom theme.. And you should add “get_sidebar(‘your_sidebar_id’)” on any page of your theme. Think it’ll help:

    https://developer.www.ads-software.com/themes/functionality/sidebars/#registering-a-sidebar

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Not Showing Up in custom theme.’ is closed to new replies.