-
AuthorPosts
-
August 24, 2015 at 3:52 pm #368007
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.
- use the shortcode to put the button on the page. (why am I using cornerstone then?)
- 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.
GregAugust 24, 2015 at 9:23 pm #368232Hi 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.
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!
August 24, 2015 at 9:50 pm #368253Thank you for the explanation and response. At least I know I should stop looking. 🙂 I think that would be a good feature enhancement.
Thanks
GregAugust 25, 2015 at 12:36 am #368397You 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!
January 1, 2016 at 5:30 pm #727977Another Greg voting for this feature. It is frustrating not to be able to link to other WP pages more naturally.
January 1, 2016 at 5:54 pm #728001You’re vote has been counted as well Greg. Thank you!
January 15, 2016 at 9:29 pm #748442My site is not giving me the option of “get shortlink” Where else could I get the shortlink?
January 16, 2016 at 12:56 am #748586Hi 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.
May 3, 2016 at 3:59 pm #911441Hello Support,
My link to another page is not working. Any advise?
Thank you,
Juan Blanco
May 4, 2016 at 12:43 am #911933Hi 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.
May 4, 2016 at 5:31 am #912200This reply has been marked as private.May 4, 2016 at 8:57 am #912495Hi 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
May 6, 2016 at 5:45 am #978432Hello support,
i added the code. the link is turn on but still not working.
I have links in the following areas:
Thank you,
Juan Blanco
May 6, 2016 at 10:16 am #978683Hola 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
May 10, 2016 at 3:14 pm #984698Thank you it works!! 🙂
Juan Blanco
-
AuthorPosts