PLATFORM
  • Tails

    Create websites with TailwindCSS

  • Blocks

    Design blocks for your website

  • Wave

    Start building the next great SAAS

  • Pines

    Alpine & Tailwind UI Library

  • Auth

    Plug'n Play Authentication for Laravel

  • Designer comingsoon

    Create website designs with AI

  • DevBlog comingsoon

    Blog platform for developers

  • Static

    Build a simple static website

  • SaaS Adventure

    21-day program to build a SAAS

Question By
Unsolved

How to open downloads in a different window Pixel v2

devdojo

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 :)

Thanks.