최근 검색


최근 검색 없음

Automatically adding an external link icon next to URLs outside of Zendesk

답변함


2023년 6월 13일에 게시됨


I would like to add an external link icon next to all links to external URLs in our Zendesk Guide theme (like the icon next to the Preview link in the Guide Admin)

I expect this can be done with CSS or JS but have been unable to get a couple of examples (of JS and CSS implemented outside of Zendesk) to work. I'm hoping someone has done this before and can share some info. We are customising the Copenhagen theme.

Thanks for your help :)


0

1

댓글 1개

      I figured it out! I added the following code to style.css 

      a:not([href*='domain.com']):not([href^='#']):not([href^='/']):after {
        /* Set the `content` property */
          content: ' \f08e';
          font-family: 'FontAwesome';
      }

      0


      댓글을 남기려면 로그인하세요.

      원하는 정보를 못 찾으셨나요?

      새 게시물