Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1321917
    alamtfuerwerbung
    Participant

    Hi, pls see sub.ihrwiderruf.de and the attached screenshot:
    http://ctrlv.in/917091

    I want the titles (Arbeitsrecht Datenschutzrecht Baurecht etc) link to another page (internal)
    For example – Arbeits should link to http://www.sub.ihrwiderruf.de/arbeitsrecht-mindestlohn/

    I tried to add html in the title section, but it doesn´t work.

    Could you please help me with correct html code.

    Thx
    Andre

    #1321923
    Rue Nel
    Moderator

    Hello Andre,

    Thanks for writing in! Normally the titles is just a plain text. This is why your html code did not work and Cornerstone automatically strips it away. If you want to add a link in the feature boxes, please check out this thread: https://community.theme.co/forums/topic/feature-box-link-3/#post-873935

    Hope this helps.

    #1322066
    alamtfuerwerbung
    Participant
    This reply has been marked as private.
    #1322169
    Paul R
    Moderator

    Hi Andre,

    Please add Link text to all your feature list item.

    http://screencast.com/t/LFQOFSBknP

    Then add the code from this post

    https://community.theme.co/forums/topic/feature-box-link-3/#post-873935

    Thanks

    #1322259
    alamtfuerwerbung
    Participant

    If I add linktext it looks like this
    http://ctrlv.in/917243

    But the “headline” isn´t linked.

    Where exactly should I add the code? I did it here http://ctrlv.in/917245

    http://ctrlv.in/917248

    Thx
    Andre

    #1322551
    Nabeel A
    Moderator

    Hi again,

    Give your feature list items a unique class for example one to the first item, two to the second item and so on.. Then add the following jQuery script in your Customizer via Appearance > Customize > Custom > Edit Global Javascript

    jQuery(document).ready(function($){
    	var link_one = "http://theme.co/x/";
    	$('.one .x-feature-box-title').wrap('<a href="'+link_one+'"></a>');
    	
    	var link_two = "http://google.com/";
    	$('.two .x-feature-box-title').wrap('<a href="'+link_two+'"></a>');
    });

    Don’t forget to clear your browser’s cache after adding the code. Let us know how this goes!

    #1322572
    alamtfuerwerbung
    Participant

    Hi, I´m afraid it doesn´t work.

    Added the class from your code:
    http://ctrlv.in/917253

    And added the code:
    http://ctrlv.in/917255

    Thx
    Andre

    #1322960
    Nabeel A
    Moderator

    Hi again,

    You were using wrong classes in the script, I went ahead and changed the code to this:

    jQuery(document).ready(function($){
    	var link_one = "http://theme.co/x/";
    	$('.link_one .x-feature-box-title').wrap('<a href="'+link_one+'"></a>');
    	
    	var link_two = "http://google.com/";
    	$('.link_two .x-feature-box-title').wrap('<a href="'+link_two+'"></a>');
    });

    Now it’s working fine. Please clear your browser’s cache and reload the site. Cheers!

    #1322974
    alamtfuerwerbung
    Participant

    great

    thx
    Andre

    #1322993
    Nabeel A
    Moderator

    Glad we could help.

    Cheers!

  • <script> jQuery(function($){ $("#no-reply-1321917 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>