Bootstrap navbar active class drupal - drupal

I`m rebuilding my old website into drupal 7.
I decided to use the drupal bootstrap theme, because my older website also uses bootstrap.
Bootstrap theme
By default the drupal navbar is included in this theme, but one thing is missing. It doesn't support the active css class. Altough the mouse over works fine, i'do need a way to make links active, depending on what page is visited. So for example if the main page is visited, the class should change into active, like the images shows right here.
I know there are some ways to do this with jquery, but the solution i found don't seem to work on a when i fully change to page. On my old website i added and removed the active class using the url, but since my goal is to make it easy to add and remove pages i don't can come up with an idea to do this.

I've found out that the drupal menu_block module adds the active class, so that's been solved. Tough now i`m stuck at a new problem, which has to do with the default block style, i asked it here.

Related

How can I permanently fix an issue caused by a wordpress plugin?

I am using the plugin Photo Gallery on my WP site and have a CSS issue with it. Before the gallery is displayed correctly, it is displayed for a split second in a different way.
From what I found out, this is apparently a "FOUC" (Flash of unstyled content) and caused by the plugin's CSS file being loaded too late.
Now I was able to fix it by adding a CSS class (.invisible) to the whole gallery in the plugins php code and setting that class in the wordpress style.css to "display: none;".
In my themes JS I then check if there is a photo gallery on the page and once the according CSS file is loaded, I remove the .invisible class from the gallery, so it is displayed correctly.
I am aware that this is not really a good solution, as the next plugin update will break it.
So my question is: What is a better way to fix an issue like this?
Probably the best bet would be to reach out in the support forums and let the plugin authors know that there is a problem. You already have a working fix for that problem so don't hestitate to show them your solution (but i dont think that hiding the slider is a good solution).
All plugins in the WordPress plugin repository have a support forum on wordpress.org … many plugins also have own websites with some kind of support mechanism (forum, contact form …).
Another solution would be to place the code that fixes the plugin not in the plugin folder itself but in you theme/child theme or a own plugin …

How do I Integrate Two Menu Wordpress Plugins?

I'm looking to have a logo with a drop down menu on my site, http://sheisbiddy.com/home/ I found a widget that changes a menu item to a photo (it's just called Menu Image) that worked beautifully. Then I added another widget (Max Mega Menu) to be able to add a dropdown menu and really customize it and make my life easier (less coding! Yay!). Problem is that it overrode the other widget and now there isn't a logo. I tried using the custom css feature to add it but it still isn't working (I asked about that in a different question here: http://bit.ly/1Pj1S3e). Is there anyway to get these plugins to play nice together? Or is there a better way to get both the logo and dropdown menu? I appreciate any advice you have! This is the last step until this site is ready to go.
If its a plugin conflict, theres a good chance its because there is conflicting styles in each one, and one takes priority over the other. Finding those styles and commenting them out or deleting them might solve your issue.
In a worse situation, there could be a name conflict, but that seems doubtful here.

Drupal Showing (2) navigation menus after updating to latest Drupal

I'm seeing now (2) navigation menus on my site when I upgraded my drupal with latest core update (Drupal 7 latest).
Shown below:
This is showing the same links, just the first in nice styling, the other in a plain html dropdown (the undesired one)
I am using the drupal classic theme
I'm search in the code, through numerous menus, etc. to try to remove it and nothing seems to give.
What is causing this? Any help is greatly appreciated.
Thanks.
Go to Appearance, and check if you have proper settings for your menu: for odd reasons they might come up in your active theme...

Portlets not in columns anymore?

I'm making a site with plone, and when I first started working with portlets, they suddenly were at the bottom of the page. In the picture, "Noticias" is a right column portlet.
https://dl.dropboxusercontent.com/u/23574503/portlet.jpg
I wanted to have the left and right collumn portlet layout back. I don't really know how have I done this, the only code I changed was the current theme css and this behaviour is not related to the theme, as it also happens with the default one.
Anyone has suggestions?
Thank you for the help.
edit: If I change the theme on ##theme-controlpanel from sunburst to plone classic, the columns work.
according to your screenshot you've installed a special theme
("theme by css templates plone integration by nekorin")
most probably the columns are re-arranged by this theme. if you deactivate this theme you'll get the default behaviour (left and right) back.

How do I load same css and scripts as dashboard, in my wordpress plugin

I have googled this and looked across this site and for the life of me cannot find an answer,
I am writing a plugin for wordpress and when I log into the dashboard I can see a collapsable div with content all styled nicely.
When I open my plugin page I don't see the same styles even though the page is very basic.
I have copied the code from the dashboard but it seems as though some of the styles are missing.
I do not need to add custom styles or scripts I just want to load the same css as the dashboard page.
Can anyone tell me where I am going wrong? I assume that the plugin page will adopt the standard admin css, is this assumption wrong?
You don't have to load anything extra for this, just use the correct classes.
You can either look these up in the source, or by using resources as this:
http://www.onextrapixel.com/2009/07/01/how-to-design-and-style-your-wordpress-plugin-admin-panel/

Resources