Okay
  Public Ticket #1711774
Blank Screen with Disk Audio, padded header
Closed

Comments

  • johnbosler started the conversation

    I'm using Disk Audio for music playlists in Salient theme. When I press any button on Disk Audio, the entire browser goes black. I contacted the Disk Audio developer and he said it was a problem with Salient, and there should be a way to fix it. Here is his whole response: 

    Hi, It has a conflict. When a button is clicked, the div element ”#ajax-loading-screen” of the your theme is made visible. This is enabled with a script of your theme (You can also get in touch with your theme support to find a different solution). Below is the solution that I thought now.

    Add the script below into a javascript file that your theme opens. It may be the file “init.js” which is in the “js” folder of your theme ”salient.” You can add this code bottom of the page, after all. Or you can add the script in another javascript file also if you prefer. If you have any questions, send me the login of your site in my email. Regards.

    (function($) {    $(document).ready(function() {        var dpc = $('.disk-player-container');        dpc.find('a').on('click', function() {            setTimeout( function() { $('#ajax-loading-screen').hide(); }, 100);        });    });
    })(jQuery);

    I added that javascript into init.js in the salient theme, but it didn't seem to make a difference. Is there a better way to fix this, or another place I should add this code?

    Second question, the header nav "shrinks" when you scroll down. I'd like to have a way to keep it at the "shrunk" smaller size all the time, either in general or just for specific pages. Can you tell me how to do that?

    Thanks!!

    Ian

  •  8,998
    Tahir replied

    Hey J,

    If you have Page Transitions Turned On Please Switch the Animated Transition Method to "Standard" in Salient Theme Options -> Page Transition Section.

    Also be sure to check/uncheck this Disable Fade Out On Click option : http://prntscr.com/8f3bj7

    Moreover if it doesnt work Turn off the Page Transitions and check for Browser Console Errors : https://codex.wordpress.org/Using_Your_Browser_to_Diagnose_JavaScript_Errors

    Best


    ThemeNectar Support Team 

  • johnbosler replied

    Thank you, checking "Disable Fade Out On Click" solved the issue.