LoDemps Posted September 11, 2020 Share Posted September 11, 2020 Site URL: https://www.lodemps.com Hi! I have a drop down menu on my site under "blog" with different categories of said blog. However, I'm trying to make the "blog" button a clickable link as well that will take you to all blog posts, not just specific categories. Can anyone help with this? Link to comment
derricksrandomviews Posted September 11, 2020 Share Posted September 11, 2020 I have the code to make it clickable, but be aware that it may not work well for mobile viewers. They don't have the ability to open the folder on hover, they have to click the folder to open it, and if this is added they will go straight to your blog not one of the categories in the folder. Add to Home > Settings > Advanced > Code Injection > Footer Add to Home > Settings > Advanced > Code Injection > Footer <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script> <script> $(document).ready(function() { $('.header-nav-folder-title[href="/blog-1"]').click(function() { window.location = "/blog"; }); }); </script> Link to comment
LoDemps Posted September 11, 2020 Author Share Posted September 11, 2020 4 minutes ago, derricksrandomviews said: I have the code to make it clickable, but be aware that it may not work well for mobile viewers. They don't have the ability to open the folder on hover, they have to click the folder to open it, and if this is added they will go straight to your blog not one of the categories in the folder. Add to Home > Settings > Advanced > Code Injection > Footer Add to Home > Settings > Advanced > Code Injection > Footer <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script> <script> $(document).ready(function() { $('.header-nav-folder-title[href="/blog-1"]').click(function() { window.location = "/blog"; }); }); </script> Wow, thank you! It says that is only a feature for Business and Commerce plans which I do not have. Is there a way around that? Link to comment
derricksrandomviews Posted September 11, 2020 Share Posted September 11, 2020 (edited) Not with this code, and I am not aware of any that works in custom css. Here is what I suggest, name the folder Wellness or something similar and add a link to your blog in the folder. I did something similar with my site where I posted photography lessons on my blog and put them in a folder: https://myrandomviews.com/views-images My folder title is not clickable either, I choose to leave it that way. Edited September 11, 2020 by derricksrandomviews Link to comment
LoDemps Posted September 11, 2020 Author Share Posted September 11, 2020 13 minutes ago, derricksrandomviews said: Not with this code, and I am not aware of any that works in custom css. Here is what I suggest, name the folder Wellness or something similar and add a link to your blog in the folder. I did something similar with my site where I posted photography lessons on my blog and put them in a folder: https://myrandomviews.com/views-images My folder title is not clickable either, I choose to leave it that way. That's a great idea. Thank you so much! Link to comment
derricksrandomviews Posted September 12, 2020 Share Posted September 12, 2020 Glad to help. I am going to try your BBQ Salmon Recipe with the Coconut-Cauliflower rice. It looks great. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment