New Product: Homzen - Laravel Real Estate Agency Portal Multilingual
  • 8:00AM - 6:00PM (Monday to Saturday)
  • [email protected]
Botble team - Outsourcing team from Vietnam
  • Home
  • Our products
  • Support
  • Documentation
  • Blog
  • Contact

Blog

  • Home
  • CMS
  • How to add PDF viewer in Botble CMS
CMS

How to add PDF viewer in Botble CMS

Sang Nguyen Sang Nguyen
Feb 17, 2023
3,060 views



1. Add reference to Fancybox stylesheet in Admin → Appearance → Custom HTML Header HTML, see screenshot below.

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/[email protected]/dist/fancybox.css">

4913824111
 

2. Add reference to Fancybox JavaScript in Admin → Appearance → Custom JS → Footer JS see screenshot below.

<script src="https://cdn.jsdelivr.net/npm/@fancyapps/[email protected]/dist/fancybox.umd.js "></script>

3186949685
 

3. Add on Page or Blog in Content, a Custom HTML shortcode with below an example:

Example 1:

<a data-fancybox data-type="pdf" data-src="https://www.africau.edu/images/default/sample.pdf" href="javascript:;">    Sample PDF file in Fancy Box  </a>

8438113707
 

Example 2:

<a data-fancybox data-type="iframe" data-src="https://mozilla.github.io/pdf.js/web/viewer.html" href="javascript:;">     Example #3 - Sample PDF file  </a>

Result: 

Screenshot 2023-02-17 at 10.07.00
 

 

Rename theme in Botble CMS
Apr 26, 2022
10,923 views
Rename theme in Botble CMS

Read more
The best way to install our script on a shared hosting
Jul 26, 2021
11,811 views
The best way to install our script on a shared hosting

Read more
  • With experience, we make sure to get every project done very fast and in time with high quality using our Botble CMS https://1.envato.market/LWRBY
  • [email protected]
  • https://botble.com
Our links
  • Envato portfolio
  • Support center
  • Facebook group
Demos
  • Botble CMS
  • Flex Home
  • LaraMag
Resources
  • Home
  • Documents
Socials
  • Facebook
  • Twitter
  • Github
© 2025 Botble Team - Laravel outsourcing team.
Botble team - Outsourcing team from Vietnam
  • Home
  • Our products
  • Support
  • Documentation
  • Blog
  • Contact