Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #368007

    GregVeres
    Participant

    Hi

    I am new to wp and to the x theme. I am using cornerstone and I imported the Integrity 07 theme.

    I want to put a button on a page that links to another page on my site. If I was using plain wp, then when I inserted a link, I would be able to select the page that I want it to link to and wp would handle what that link turns into behind the scenes.

    Is there a way to do this in cornerstone when I add a button? I know there are the two following solutions, but both seem to be hacks really.

    1. use the shortcode to put the button on the page. (why am I using cornerstone then?)
    2. create the page, then capture the link in the browser and treat it as an external link. But could this break if I later changed the format of the permalinks? This also seems like an awful lot of trouble when I am selecting an internal page. it seems like something that could get out of sync on me.

    Is there a better way to do that?
    If I wasn’t clear about the situation, I have page 1 that will have a button that links to page 2. How do I set up the link behind the button on page 1.

    Thanks a lot in advance.
    Greg

    #368232

    John Ezra
    Member

    Hi there,

    Thanks for writing in! Regretfully the only way to link to another page using a button element in Cornerstone is to use the href input box and give a direct link.

    If you wanted to make it permalink proof then use the short link instead of the actual link. This way it will always use the post/page id so no matter how you change the permalink it will still lead to that page.

    Example: Let’s say you want to link to the about page from a button.

    Actual Link would be http://www.yourdomain.com/about

    Shortlink would look somthing like this: http://www.yourdomain.com/?p=#### (post/page id number)

    You can get the shortlink by editing the page and clicking on get shortlink.

    get shortlink

    I will also add a feature request to our dev team regarding and internal links element option. I can’t promise implementation or a timeline at this point, however, we do listen to our users and we’re always trying to improve. When we see something beneficial we do our best to make it happen. We’re actually working on a number of things so if this does get added to the pipeline, we’ll be sure to announce it when it’s ready. Thanks for understanding and hope the above helps – have a great day!

    #368253

    GregVeres
    Participant

    Thank you for the explanation and response. At least I know I should stop looking. 🙂 I think that would be a good feature enhancement.

    Thanks
    Greg

    #368397

    Rupok
    Member

    You are welcome Greg!

    Feel free to let us know if you face any other issue. We’ll be happy to assist you.

    Thanks for using X.

    Cheers!

    #727977

    gregjohnson1024
    Participant

    Another Greg voting for this feature. It is frustrating not to be able to link to other WP pages more naturally.

    #728001

    Jade
    Moderator

    You’re vote has been counted as well Greg. Thank you!

    #748442

    jsyeager
    Participant

    My site is not giving me the option of “get shortlink” Where else could I get the shortlink?

    #748586

    Christopher
    Moderator

    Hi there,

    Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.

    Please add this in child theme’s functions.php :

    add_filter( 'get_shortlink', function( $shortlink ) {return $shortlink;} );

    Hope it helps.

    #911441

    Juan Blanco
    Participant

    Hello Support,

    My link to another page is not working. Any advise?

    http://prntscr.com/azx4s6

    http://prntscr.com/azx699

    Thank you,

    Juan Blanco

    #911933

    Jade
    Moderator

    Hi Juan,

    Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    #912200

    Juan Blanco
    Participant
    This reply has been marked as private.
    #912495

    Joao
    Moderator

    Hi Juan,

    I tried accessing your cornerstone but is not loading.

    I tried to access your ftp via cpanel, the password works, but there is something wrong with the cpanel, everything looked broken.

    Maybe there is some issue with your hosting at the moment.

    Can you please try following this instructions.

    Login to your hosting account via ftp or cpanel and find the file wp-config.php

    Add this in your wp-config.php located at the root directory of your site.

    define( 'WP_MEMORY_LIMIT', '256M' );
    define( 'WP_MAX_MEMORY_LIMIT', '512M' );
    

    You can add it before the line

    /* That’s all, stop editing! Happy blogging. */

    Regarding the link you just need to turn on the feature at the element to open the link in a new window. Please look the pic attached.

    Let us know how it goes,

    Thanks

    Joao

    #978432

    Juan Blanco
    Participant

    Hello support,

    i added the code. the link is turn on but still not working.

    I have links in the following areas:

    http://prntscr.com/b0wuz7

    Thank you,

    Juan Blanco

    #978683

    Joao
    Moderator

    Hola Juan,

    To make the image clickable you need to follow this:

    Can you please go to your WP-Admin Dashboard / Appeareance / Customizer / Custom / JavaScript and add the following code.

    jQuery ( function( $ ) {
    
    $('.x-feature-box-text a:last-child').each( function() {
    
    $( this ).parent().parent().parent().find('.x-feature-box-graphic-inner i').wrap( '<a href="' + $( this ).attr('href') + '"></a>' );
    $( this ).remove();
    
    } );
    
     } );

    It is important that on the Feature Box element you have added some text to the box LINK TEXT, which is just above HREF. The text wont appear, but it needs to be there otherwise the code won´t work

    Hope that helps and let us know if you need further help,

    Joao

    #984698

    Juan Blanco
    Participant

    Thank you it works!! 🙂

    Juan Blanco