WordPress.org

Support

Support » Plugins and Hacks » Lively Chat Support » [Resolved] Does not display on any other page but home page

[Resolved] Does not display on any other page but home page

  • Hello,

    I installed this and on the home page it works great, any other page it does not show.

    I looked at the source code and all the code for it is there, but I have no idea why it isn’t showing.

    Any ideas where to look?

    On the settings page at the bottom I have * to show on all pages and always on mode under schedule.

    Thank you

    https://wordpress.org/plugins/lively-chat-support/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author dallasread

    @dallas22ca

    Not sure… what is the site?

    Hello Dallas I just sent you an email with the link and other info.

    Thanks

    Just thought I would post back and change this to resolved.

    A big thank you to dallas22ca for his help.

    The problem I had was that the chat box wasn’t showing on any other page but the home page. I had a slider on the home page (bxslider) and it was calling the required JS to work. This in turn was conflicting with the JS from the chat box.

    Being that the slider was only on the home page I wrapped in in a conditional to check if it was the home page -> then out put the JS for the slider.

    Hope this helps someone else.

    <?php if( is_front_page() || is_home() ) : ?>
    	<script type="text/javascript">
    		$(document).ready(function(){
    		// your JS code here
    		});
    	</script>
    <?php endif  ?>

    The first line says if it is front_page.php or home.php or the home page set in admin -> Then run this <script>

    If it’s not the don’t do anything.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Does not display on any other page but home page’ is closed to new replies.
Skip to toolbar