Tagged: x
-
AuthorPosts
-
January 9, 2017 at 1:28 am #1321917
alamtfuerwerbungParticipantHi, pls see sub.ihrwiderruf.de and the attached screenshot:
http://ctrlv.in/917091I 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
AndreJanuary 9, 2017 at 1:36 am #1321923
Rue NelModeratorHello 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.
January 9, 2017 at 4:15 am #1322066
alamtfuerwerbungParticipantThis reply has been marked as private.January 9, 2017 at 5:46 am #1322169
Paul RModeratorHi 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
January 9, 2017 at 6:55 am #1322259
alamtfuerwerbungParticipantIf I add linktext it looks like this
http://ctrlv.in/917243But the “headline” isn´t linked.
Where exactly should I add the code? I did it here http://ctrlv.in/917245
Thx
AndreJanuary 9, 2017 at 10:15 am #1322551
Nabeel AModeratorHi again,
Give your feature list items a unique class for example
oneto the first item,twoto the second item and so on.. Then add the following jQuery script in your Customizer via Appearance > Customize > Custom > Edit Global JavascriptjQuery(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!
January 9, 2017 at 10:28 am #1322572
alamtfuerwerbungParticipantHi, I´m afraid it doesn´t work.
Added the class from your code:
http://ctrlv.in/917253And added the code:
http://ctrlv.in/917255Thx
AndreJanuary 9, 2017 at 3:28 pm #1322960
Nabeel AModeratorHi 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!
January 9, 2017 at 3:44 pm #1322974
alamtfuerwerbungParticipantgreat
thx
AndreJanuary 9, 2017 at 3:52 pm #1322993
Nabeel AModeratorGlad we could help.
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1321917 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
