Okay
  Public Ticket #2397858
External link button
Closed

Comments

  • Patryk started the conversation

    Hi.

    I have created some portfolio pages assigned to main page, when Im clicking on button i wish to go to external link not to my portfolio item.


  •  1,823
    Support replied

    Hello Patryk,

    This involves custom work and several steps:

    1. defining a new option in portfolio item options that will store the custom URL (different than the default one which is the individual portfolio page)

    /include/metabox-config.php

    2. modifying showcase-page.php buy reading this option and, if it's not empty, replacing the_permalink() with the custom url in this code bit:

    <?php if( satelite_get_theme_options('clapat_satelite_enable_ajax') ){ ?>
    <a class="showcase-link-project" data-type="page-transition" href="<?php the_permalink(); ?>"></a>
    <?php } else { ?>
    <a  class="showcase-link-project" href="<?php the_permalink(); ?>"></a>
    <?php } ?>



    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  • Patryk replied

    Hmm, unfortunately I'm not a master of wordpress, and this is a little bit to hard for me.

    Where in metabox-config.php I should put this option, can You edit this code for me please?

    https://pastebin.com/wkYFK9Kt

    And after this I can define custom external links for all of my portfolio items?


  •   Support replied privately
  •   Patryk replied privately
  •   Support replied privately
  •   Patryk replied privately
  •   Support replied privately
  •   Patryk replied privately
  •  1,823
    Support replied

    That's great Patryk!

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  •  1,823
    Support replied

    If you like our theme plz don't forget to rate it!smile.png

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy