最近搜索


没有最近搜索

Edward Teach's Avatar

Edward Teach

已加入2022年2月23日

·

最后活动2025年1月15日

“Damn you villains, who are you? And from whence came you?”

关注

0

关注者

0

活动总数

2

投票

1

订阅

0

活动概览

的最新活动 Edward Teach

Edward Teach 创建了一个帖子,

帖子 Discussion - Tips and best practices from the community

This handy tip involves customizing you Help Center to display Popular Search topics.

It could be also be used to highlight new or specific articles.

 


Prerequisites:
 

  • Technical skills: Just copy and pasting
  • Total duration: 5-10 minutes


To add popular searches or topics in Copenhagen Theme
 

  1. Go to Guide admin > (👁️‍🗨️) Customize the design.
  2. Choose a theme.
  3. Click Customize Edit code.
  4. Select the following templates: "document_head.hbs",  "home_page.hbs", and "style.css".
  5. Copy and paste the code below to "document_head.hbs". Replace with your desired topic/keyword title and the links for it. The code below includes 4 topics but feel free to add as many or as few as you'd like.
    Pro Tip: Base the topics/keywords from your Search dashboard, see Analyzing help center search results with Explore

     

     

  6. Now, go to "home_page.hbs".
  7. Copy and paste the code underneath the,
    {{search submit=false instant=settings.instant_search class='search search-full'}}
    Note: The search icon was removed as it becomes offset when adding the code below.

  8. Then, go to "style.css".
  9. Add the code at the very bottom.
    .popular-searches {
        max-width: 960px;
        margin: 0 auto;
        padding-left: 5px;
        text-align: left;
        font-size: 15px;
        color: #ffff;
        margin-top: 1rem;
        user-select: none;
    }

    .popular-searches a {
        padding-left: 5px;
        text-decoration: underline;
        text-decoration-color: #ffff;
        text-underline-position: under;
        user-select: none;
    }
  10. Click Save in all tabs and you're done!

已于 2022年3月05日 发布 · Edward Teach

3

关注者

11

投票

7

评论