- Settings > SEO > Footer Code
- Theme > Edit HTML/CSS
- Modify appropriate file in "Header Type" section (typically header.html)
| @media print{ | |
| div.js__main-container > div.o__has-columns > div.submenu.layout__box { | |
| display: none; | |
| } | |
| .beta__left-nav-colors .main__content-outlet{ | |
| overflow: visible; | |
| height: 1000px; | |
| } |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title></title> | |
| </head> | |
| <body> | |
| test 123 test | |
| <script> | |
| var APP_ID = "qji82zks"; |
| [ | |
| [ | |
| [ | |
| "Official", | |
| "SDK", | |
| "API" | |
| ], | |
| " PHP SDK library: ", | |
| [ | |
| "https://github.com/intercom/intercom-php" |
| // create this file js/intercom.js | |
| (function ($, Drupal, drupalSettings) { | |
| 'use strict'; | |
| Drupal.behaviors.attach_intercom = { | |
| attach: function (context, settings) { | |
| window.intercomSettings = drupalSettings.intercom; | |
| // log out of Intercom when logout button clicked |
| <?php | |
| //////////////////////////////////////////////////////////////////////////////////////////////// | |
| // Intercom integration | |
| //////////////////////////////////////////////////////////////////////////////////////////////// | |
| // - Supports logged out users / visitors | |
| // - Supports logged in users and has logout as well (NOTE: customise logout behaviour based on your theme) | |
| //---------------------------------------------------------------------------------------------- | |
| // IMPORTANT | |
| // - Customise logout behaviour based on your theme (used "protostar" theme on a standard install of Joomla! 3.7.2 Stable [ Amani ] 22-May-2017 09:46 GMT as a test) | |
| // - Unsure how best to santize PHP code so using addslashes in this instance. Do comment if there is a better way (did not want to use htmlentities as would want to keep raw values) |
| <?php | |
| /* | |
| ############################################################################################# | |
| # Manually handle URL redirections when transferring from an old custom domain to the new one | |
| ############################################################################################# | |
| - This will allow you to manually redirect URLs if you move systems | |
| - Likely not the best for performance reasons but is a workable solution | |
| ################ |
| <?php | |
| /* | |
| ############################################################################################# | |
| # Manually handle URL redirections when transferring from an old custom domain to the new one | |
| ############################################################################################# | |
| - This will allow you to manually redirect URLs if you move systems | |
| - Likely not the best for performance reasons but is a workable solution | |
| ################ |
| # Step 1: set up normal server with HTTPS https://letsencrypt.org/ | |
| # Step 2: set up proxy settings as shown below | |
| # Step 3: set custom domain in Intercom Help Center settings | |
| <IfModule mod_ssl.c> | |
| <VirtualHost *:443> | |
| ServerName your-help-site.custom-domain.com # specify your custom domain here | |
| SSLEngine on | |
| SSLProxyVerify none |
| test text file |