Using your own theme assets for help center

Return to top

11 Comments

  • Felipe Soares

    Is is possible to upload a whole folder at once? As an alternative, is it possible to upload using an FTP client?

    0
  • Tipene Hughes
    Zendesk Developer Advocacy
    Hey Felipe,
     
    Thanks for reaching out! 
     
    Uploading a folder to the assets directory in the help center theme customization section is not possible, unfortunately. If you're wanting to upload a large volume of files at once, I'd suggest either downloading the theme entirely and placing the images directly in the assets folder, or setting up a github integration for your theme where you can manage the assets in github and have the changes updated on the site directly from the github repository.
     
    I hope this helps! Let me know if you have any questions.
     
    Tipene
    0
  • Chris Fewster

    Is there a way for me to add assets which match the name of the title and have those automatically inserted using 

     

    {{asset 'Card.png'}} for instead something like {{asset '{{title}}.png'}}

    0
  • Tipene Hughes
    Zendesk Developer Advocacy

    Hi Chris,

    You can make use of the prefix attribute available to the asset helper to define the file type. Then, you'd just define the filename using an object property e.g article.title. Here's how that would look:

    {{asset article.title suffix=".png"}}

    Feel free to reach out with any questions!

    Tipene

    0
  • Louis Ross

    Hi Tipene, 

    How do I find the folder and asset number for my assets to use in my home_page.hbs page, like is used in the following example code:
    <img src="//theme.zdassets.com/theme_assets/2383527/82ce61cc2c0bddc27914a21813df17e0de438705.png">
     
    In my instance, it only shows the following links in the asset folder (see picture). How do I find the theme.zdassets.com/theme_assets/ folder for my instance?
     
     
    0
  • Gorka Cardona-Lauridsen
    Zendesk Product Manager

    Louis Ross there is no specific folder for your instance and the assets can be loaded using the asset helper or asset path variables, but I would like to hear what your use case is so I can understand it and take it into our our considerations for improvements.

    Could you tell me more about your use case?

    Thanks!

    0
  • Bharat Dave

    Hi

    Hope someone can help me setup a background image for my service desk. I tried to follow this article, but I cannot get it to update the background in my services desk. Please see attached. Hope someone can help thanks.

    0
  • Pulkit Pandey
    Community Moderator

    Hi Bharat Dave

    Please add the below CSS and let me know if it solves your issue or if it's possible to share the live URL so I will dig deep into it and provide you with the exact solution to your problem.

    .class-name {
    height: 200px;
    }

     

    Thanks 
    Pulkit

     

    0
  • Bharat Dave

    Hi Pulkit,

    Like this? If so, It didn't work.

     

    0
  • Pulkit Pandey
    Community Moderator

    Hi Bharat Dave

    Is it possible the share the live URL of your help center where you are implementing this so that I will look at it and give the solution for that?

    Thanks 

    Pulkit

    0
  • Bharat Dave

    Hi Pulkit,

    I found the following code that worked for me from: https://support.zendesk.com/hc/en-us/community/posts/4409515213594-Set-a-page-background-image-in-Help-Center?page=1

     

    body {background-image:url($assets-myimagename-png);
    background-repeat: no-repeat;
    background-attachment:fixed;
    background-position: bottom right;}

    0

Please sign in to leave a comment.

Powered by Zendesk