How to open downloads in a different window Pixel v2


Apr 27th, 2017 01:39 PM

A Few users have asked how to open the downloads in the same page or in a new tab instead of having it open with the side modal window.

So, here is how you can implement this. Depending on the theme you are using you will need to open up the file resources/views/themes/{theme_name}/partials/downloads.blade.php

{theme_name} above will be the current theme you are working with.

Inside of that file you will see 3 <a> tags that look similar to the following:

<a href="<?= route('download', $download->slug) ?>" class="head_item side-modal item_ajax">

You will need to remove the class side-modal from this link. Additionally if you want it to open in a new tab you will need to add target="_blank" so, the link would instead look like this:

<a href="<?= route('download', $download->slug) ?>" target="_blank" class="head_item item_ajax">

Remember, there will be 3 links like this, make sure to look for any <a> tags that have a class of side-modal

After removing those classes the links will now open in a new tab or the same page instead of sliding out from the side :)