WordPress has a built in feature that assigns the class “current-menu-item” to the current navigation item.
Nevertheless, that feature only works for contextual menus; and not for the ones inside the post content.
You can see in this page that the first level parent item OBRAS is highlighted, but not the third level child GRÁFIKA located left in the inner page menu.
Looking for a method to accomplish this highlight feature in the inner menu.
Thanks
I asked this question based on 2 facts:
– The menu is created by WordPress.
– The plugin; all it does is generate a shortcut to insert the menu inside the post.
So the question is not Theme related, and not plugin related. It´s WordPress related.
Nevertheless, I asked the Theme developer and the Plugin developer, without response.
In addition, no answer from WordPress.Org Forum. All they say is “ask the theme or plugin developer”.
Therefore, once I found a solution, not the ideal one but at least one that will allow the highlight effect without any core modification, I felt I had to post it here:
I used Wordpress Add Custom CSS plugin to add css per each page.
Then I added the individual code for the first inner menu item and it worked:
li#menu-item-981 a {
color: #FEBF46 !important;
font-weight: bold !important;
text-shadow: 1px 0 #FEBF46;
}
And that was it; not an ideal automatic solution, but a simple and clean one.
Thanks for your attention.
Related
I am trying to replace the quick launch menu on the left hand side of just one library in a SharePoint 2013 site. Instead, I would like to show just the library metadata navigation.
Is there a way to do this without modifying the master? If not, is there a way to move the navigation above the menu? I tried some code in the script editor I found on a different site, but I just made everything disappear! I also tried just removing the menu, but the entire bar disappeared including the metadata navigation.
To anyone who finds this question, adding the below snippet to a script editor webpart on the library page solved my issue:
<style>
.ms-core-listmenu-verticalBox{ DISPLAY: none }
</style>
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 2 years ago.
The community reviewed whether to reopen this question 4 months ago and left it closed:
Original close reason(s) were not resolved
Improve this question
How do I turn off page breaks in Google Docs so I just have a single continuous scrolling document?
I don't think this method applies anymore.
I never want to print out my Google Docs. The page breaks are distracting and mess up my formatting. (For example, when I have footnotes inside a table that crosses a page boundary, the footnotes break up the table!)
In 2016: Turn off "Print Layout" from the "View" menu.
Now, 2022, there is a specific feature extending these capabilities in "File / Page Setup" : https://support.google.com/docs/thread/150905607/google-docs-new-feature-pageless?hl=en
I also rarely want to print my google docs, and the breaks annoyed me as well.
I installed the Page Sizer add-on from the add-ons menu within google docs, and made the page really long.
The page settings work globally. So your collaborators will also enjoy a page page-break-free experience in google docs, unlike the style-bot solution.
Update
Google now provides this feature out of the box.
File > Page Setup > Pageless
One option is to just double click the page break line and Google will automatically removed them.
For reference: https://www.youtube.com/watch?v=5Qq3KxGHm3g
The solution I came up with was to use the publishing feature.
File > Publish to the web...
Then in the URL you can just replace the .../edit path with .../pub
This solves the problem described in the question of breaking up a table with footnotes.
The only way to remove the dotted line (to my knowledge) is with css hacking using plugin.
Install the User CSS (or User JS & CSS) plugin, which allows adding CSS rules per site.
Once on Google Docs, click the plugins icon, toggle the OFF to ON button, and add the following css code:
.
.kix-page-compact::before{
border-top: none;
}
Should work like a charm.
This answer is a summary of comments; but it really deserves its own answer.
The accepted answer (by #BjarkeCK) works, but as written, there is a maximum allowable page height of about 120 inches — roughly the height of 11 normal sized pages. So this is not a perfect solution.
However, there is a hack. You have to edit the source code of your local browser which renders the Page-Sizer settings window and either increase or delete the max attribute for the page height input. As shown in the following screen shot.
Page-Sizer Add-on
To access the source code you need to edit, position your cursor inside the custom height field, right-click, then choose inspect element.
Note that you also have to delete all the page breaks in your original document otherwise no data will render after the first one.
If You want to REMOVE page break from document
use Edit / Find-Replace \f with regex
If You want to TURN OFF (as You asked)
uncheck "Print Layout" from the "View" menu, but dotted lines will remain indicating page breaks
install stylebot extension from webstore
https://chrome.google.com/webstore/detail/stylebot/oiaejidbmkiecgbjeifoejpgmdaleoha
go to G-document, set appropriate minimal view mode
click stylebot icon (css) in toolbar of Chrome
click "Open Stylebot"
on very first line of new window, which is reading "select an element", insert text .kix-page-compact::before
set border-style to none
Other than that open the "View" menu at the top of the screen and un-check "Print Layout." Page breaks will now only be shown as a dashed line.
A long-term solution: userscript
You can use a userscript like Tampermonkey (if you are using Chrome or Edge-Chromium, here is the extension)
Then create a script and paste this in it:
// ==UserScript==
// #name Google docs
// #include https://*docs.google.*/document/*
// #grant GM_addStyle
// ==/UserScript==
GM_addStyle ( `
.kix-page-compact::before {
border-top: none;
}
` );
A temporary fix: developer console
You can use the developper console. In Chrome:
1. open your document on google docs
2. click in the url field and press ctrl+shift+I (or right click just above help and select "view page source)
Then modify the css (cf the steps on the printscreen below) :
1. once the console is loaded press ctrl+F and paste this : kix-page kix-page-compact
2. click on the div just below the one that is highlighted in yellow
3. in the right part, paste this in the filter box : .kix-page-compact::before
4. click on 1px dotted #aaa next to border-top and replace it by none
In my Tumblr blog there are "Next" and "Previous" buttons. Even though I have enabled infinite scrolling in the blog, sometimes the "Next" and "Previous" buttons are visible. Like when the Internet connection is slow, these buttons shows for a while and then disappear.
What I want is that these buttons should hide permanently.
I have searched for this on Internet but all the answer are like "Delete the pagination block from the code". But after deleting the pagination, infinite scrolling also stops.
Just add some rule into the css. It depends on the names of your elements. Something like:
.prev,
.next {
display: none;
}
This would be in the style tags towards the top of the template. There should already be some existing rules for the css for these elements.
If you can update your question with the names of the navigation it might even be simpler than this.
Edit your theme, and remove the code between
{block:Pagination} and {/block:Pagination}
For the main menu, I want the first four links to be blue, and specifically the last four links to be yellow. There will only be eight menu items.
I was thinking of hard coding the yellow links into the menu div, and that way when the page loads the first four menu items (default colour blue) they will be blue, and then my hard-coded links of yellow would load up.
My question is, where can I add the "yellow" code? Where can I hard code my yellow menu items? Or is there a different, better, approach to this?
My first question would be which men u are you implementing? A lot of them have a menuitem_x sort of id that is applied to the menu markup so with the CSS you can do what you want
As for where to place the markup there are a few places
You can do it directly in the skin files (not suggested since you may have to edit a few files)
in the skin .css files (much better place to do it and more maintainable and portable)
in the admin go to Site Settings and use the stylesheet editor to add the classes to the portal stylesheet (better than #1 but not as good as #2 since its now specific to the portal and not the skin so it wont be as portable)
Number 3 - works good if you dont have access to the skin or dont want to change it for other reasons
You could use Javascript within the skin.
We have done simular in the past for DNN menus but i keep away from the skinning side so dont have any examples, sorry.
Google does though :)
I would use one of the specific SEO friendly DNN menu modules that generate clean code that can be followed by search engines. I usually use one of them, except for projects where I don't have SEO concerns. When you have a menu with clean markup, like a list, you can change the colors using jQuery and specifying the first four items. You can probably do it like this, one by one. There may be a better selector for grabbing the first four items which is something I have never used.
Solved it, not as dynamic as I'd like, but it works.
The way I've done it is I'm playing with id tags, rather than class tags. Using ID, I can pick out the individual menu items and apply CSS to them.
Essentially, it looks like I've done what 'codemypantsoff' suggested. Thanks!
I'm working with Dreamweaver CS3. The question here is what part of the code (listed below) do I need to replicate to have my secondary nav bar utilize the on-click action?
FYI...DW has two menu options or auto insert items...one for roll over images and one for "navbar". DW will only allow you to use the 'navbar' item once per page
the nav bar option builds all the rollover actions for you (listed below)
the "rollover" option ONLY builds normal and over, but no click
I guess I really have two questions...the first is what part of the code do I need to insert manually, the second is what does the "MM_nbGroup" code mean?
"../photogallery.html" target="_top" onClick="MM_nbGroup('down','group1','photoMainNav','../images/buttons/photography_down.gif',1)"
onMouseOver="MM_nbGroup('over','photoMainNav','../images/buttons/photography_over.gif','../images/buttons/photography_over.gif',1)" onMouseOut="MM_nbGroup('out')"><img src="../images/buttons/photography.gif"
Thanks for any help on this in advance!
For anyone wondering the same thing, here's what I've found so far...
The 'insert' bar provided in DWCS3 doesn't allow for two 'inserted' menu bars on one page. However, the 'Behaviors' palette will allow you to add effective roll-overs with the "Set Nav Bar Image" option. Unfortunately (as far as I can tell) DWCS3 is not as smart as Adobe's GoLive was, in that it won't automatically fill in the appropriate items if you name your files correctly. Even still, you should name your images accordingly (xxx_over, xxx_down, etc) to keep it straight in your own head.
As for the MM_nbGroup question, best I can tell this is WYSIWYG code that ships with DWCS3 (the kind of stuff that really mifs some of you developers, sorry guys), as it names items by group # and doesn't seem to have any real relevance in the lexicon of html. I could be mistaken on this however, and am open to enlightenment on the topic if anyone can offer.