Cargo home Twitter Devlog

Change Header Image destination

Last Updated: May 15, 2015 11:34AM PDT

By default, the header image will redirect to your website's start page when clicked. However, if you are using a splash page for your start page, you won't necessarily want to display the splash page again when the header image is clicked.

To get around this, you can use a small script in your Custom HTML to have it close the currently-open project, or redirect it to the URL of your choice.

To have the header image close the currently open page or project:

 <script type="text/javascript">
    $(document).ready(function() {
        $(".header_img a").attr("href", "javascript:void(0)").click(function() {
            Projects.CloseProject();
        });
    });
</script>

 

To point the header image to a different page or project:
<script type="text/javascript">
    $(document).ready(function() {
        $(".header_img").unbind();
        $(".header_img a, .header_image a, .header_text a").removeAttr("rel").unbind().attr("href", "paste_destination_url_here");
    });
</script>
tickets@cargocollective.com
http://assets0.desk.com/
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
Invalid characters found
/customer/en/portal/articles/autocomplete