Closed (won't fix)
Project:
Bootstrap
Version:
8.x-4.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
31 Mar 2015 at 01:30 UTC
Updated:
30 Oct 2023 at 17:07 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
markhalliwellOk, I've gone ahead and create the following plugin https://github.com/markcarver/bootstrap-anchor
You can view a demonstration of this plugin in action at http://bootstrap-anchor.com
Once the above remaining tasks are complete, I'll mark this issue as fixed and then release
7.x-3.1-beta3so people can test it out much easier.If need be, we can always revert whatever is committed in this issue. However, I imagine this is far superior than what is currently in the project.
Instead of creating issues here, please create them over at https://github.com/markcarver/bootstrap-anchor/issues (for now).
My ultimate goal/desire is to actually have this be an official Bootstrap plugin that ships with the framework itself. When/if that happens, we can remove the plugin from this project.
Comment #2
kingfisher64 commentedI was looking for this feature - very cool indeed.
I'll gladly test it out if that will help.
Comment #3
markhalliwellAdded custom domain for plugin.
Comment #4
markhalliwellComment #5
neardark commented'),
The smooth
data-smoothcould use a slight bit more explanation for beginners, such as "For smooth scrolling for individual anchors, add data-smooth to your code. Or perhaps just linking to the docs on the site.That's the only thing I saw if you deem worth fixing up, otherwise it looks good and I'll merge it by end of day.
Comment #6
markhalliwell@neardark, sorry. The above patch indeed "needs work", this was just what I had started to do. There are a ton more options that need to be added into the UI.
Comment #7
neardark commentedAhh of course. Working on this now then.
Comment #8
sonicthoughts commentedstumbled on this as it was what i needed but the demo is not working for me in chrome (nothing on console). Anchors not working at all at http://bootstrap-anchor.com.
Comment #9
neardark commentedHere's a start. Some notes:
Comment #10
neardark commentedComment #11
neardark commentedComment #12
neardark commentedOK, this is ready for some testing by anyone willing. You should note that a few options don't appear to be working, such as Normalize IDs and Anchor Offset. Will investigate further.
I did not commit Bootstrap Anchor to this repo -- instead the installation is for users to download and install Drupal libraries module and then place the Bootstrap Anchor in the sites/all/libraries (or anywhere in sites/* I suppose)
Comment #14
neardark commentedNow with libraries.inc
Comment #15
neardark commentedComment #16
markhalliwellDiscussed this with @neardark in IRC. This issue really deserves to be fully flushed out (which neither of us really have time for right now). It shouldn't be rushed and shouldn't block a release.
We need a better way to implement "plugins" as a whole: not just for bootstrap-anchor, but also for others like bootstrap-select and bootstrap-datepicker.
Postponing this issue on the parent issue.
Comment #18
markhalliwellI've disabled the existing corrupt plugin by default (for new installations or sites that don't have saved settings in the DB or .info file).
If you need to enable/disable this feature, add the following to your .info file:
Comment #20
n20 commentedI tried to enable the settings in my info file without any effect:
I'm using bootstrap-7.x-3.1
Do i need to install that plugin in libraries?
Comment #21
markhalliwellPlease read: Why are my sub-theme's .info settings ignored?
Comment #22
n20 commenteddrush vdel theme_[my_bootstrap_subtheme]_settingsworked. Thanks.Comment #23
kumkum29 commentedHello,
I have enabled these settings of my info file :
and see in the settings of my theme that these options are enabled.
But if I use an anchor, I don't see the "Smooth effect". Maybe Have I omitted anything ?
Thanks for your replies.
Comment #24
markhalliwellI don't think this is going to happen in 7.x.
Comment #25
markhalliwellComment #26
markhalliwellDon't think this is going to happen for 8.x-3.x either.
Comment #27
jcnventuraInstead of
drush vdelwhich will destroy your current settings you can also usewhere
[my_bootstrap_subtheme]is the name of your bootstrap sub-theme.Comment #29
freddy rodriguezJust Css:
html{scroll-behavior:smooth}Comment #30
markhalliwellYeah, the plugin does a lot more than just smooth scrolling.
Comment #31
shelaneThis theme will not be supported for Bootstrap 4. See alternative themes for this support.