Tagged: x
-
AuthorPosts
-
November 7, 2016 at 4:54 am #1246872
sandra.iParticipantHello
I would like to customise the links in a menu sidebar. Could you help me with this please?
November 7, 2016 at 4:55 am #1246873
sandra.iParticipantThis reply has been marked as private.November 7, 2016 at 5:19 am #1246901
Paul RModeratorHi,
You can add this under Custom > Edit Global CSS in the Customizer.
#started_target2 #lab_tests_sidebar.x-widget-area .widget_nav_menu ul>li a { margin-top: 0; margin-bottom: 10px; padding: 10px; background-color: #000; color: #fff; } #started_target2 #lab_tests_sidebar.x-widget-area .widget_nav_menu ul>li { border:0 !important; } #started_target2 #lab_tests_sidebar.x-widget-area .widget_nav_menu ul { border:0 !important; }Hope that helps.
November 7, 2016 at 5:23 am #1246904
sandra.iParticipantBrilliant thank you for the quick response
Would it be possible to have all the buttons one length..? Eg: 225px?
November 7, 2016 at 5:53 am #1246936
Paul RModeratorYes, that’s possible.
You can change the code to this.
#started_target2 #lab_tests_sidebar.x-widget-area .widget_nav_menu ul>li a { margin-top: 0; margin-bottom: 10px; padding: 10px; background-color: #000; color: #fff; width:225px; } #started_target2 #lab_tests_sidebar.x-widget-area .widget_nav_menu ul>li { border:0 !important; } #started_target2 #lab_tests_sidebar.x-widget-area .widget_nav_menu ul { border:0 !important; }November 7, 2016 at 6:02 am #1246941
sandra.iParticipantThis reply has been marked as private.November 7, 2016 at 7:12 am #1247020
Paul RModeratorHi,
It looks like you already figured it out.
Have a nice day!
November 7, 2016 at 7:21 am #1247026
sandra.iParticipantThis reply has been marked as private.November 7, 2016 at 8:10 am #1247083
Paul RModeratorHi,
Regretfully, this particular customization request is outside the scope of our support as this is not related to an issue with the theme and instead has to do with your customization of it. As such, you will need to investigate this particular issue on your own or seek help from a developer should you not feel comfortable making these changes yourself. If you have any further questions about the theme, we are more than happy to provide you with assistance on these inquiries.
Thank you for your understanding.
November 7, 2016 at 8:40 am #1247130
sandra.iParticipantThanks for your reply. I was advised on the structure of that page by developers from X theme. It is very important for me to be able to link to that page from external sources e.g. blogs, etc. I would be grateful if you could advise me on on how that link could be made, so that I can use that page effectively.
November 7, 2016 at 12:10 pm #1247451
RupokMemberHi there,
Sorry but didn’t quite get you. Do you want to link to a tag page? It would be like – http://www.rochesterclinic.co.uk/tag/gastrontestinal if your tag slug is gastrontestinal .
Please clarify a bit so that we could assist you better.
Cheers!
November 7, 2016 at 1:46 pm #1247585
sandra.iParticipantThis reply has been marked as private.November 7, 2016 at 2:04 pm #1247607
sandra.iParticipantThis reply has been marked as private.November 8, 2016 at 12:52 am #1248247
LelyModeratorHello Sandra,
Please try to update your javascript code to this:
(function($) { var menu = $('#lab_tests_sidebar'), target = $('#started_target'); var section = getUrlParameter('section'); if (window.location.search.indexOf('section=cdsa') > -1) { target.load("http://www.rochesterclinic.co.uk/clinic/lab-tests/cdsa/" + " .entry-content.content"); } $('#lab_tests_sidebar a').each(function() { var element = $(this); element.on('click touchend', function(e){ console.log(element.attr('href')); target.load(element.attr('href') + " .entry-content.content"); e.preventDefault(); }); }); })(jQuery);Then going to that page, the link should be like this:
http://www.rochesterclinic.co.uk/clinic/lab-tests/?section=cdsaHope this helps.
November 8, 2016 at 5:14 am #1248501
sandra.iParticipantHi
That doesn’t quite work
– clicking on ‘CDSA’ now loads that section into the browser window, instead of the target div
– clicking on http://www.rochesterclinic.co.uk/clinic/lab-tests/?section=cdsa – loads that section into the browser as well
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1246872 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
