• I have WordPress 5.0 / Gutenberg and my theme is Graphy. I have Chrome v. 71.0.

    When I upgraded to WP.5.0 and to Gutenberg (blocks) I observed that a menu that I had made unclickable before now was clickable again.

    I have tried to create a new custom link and put the URL to # and then under CSS-classes both write and not write ”unclickable” but it does not work. I have also removed the # according to the instruction below.

    I have tried several times without success. And now I really do not now what to do.

    I wonder, is it some bug in my theme or in WP?

    Before WP 5.0 I followed this instruction:

    ”The easiest way to do it without a plugin or anything is to use the “Menus” function of WordPress. Here are the instructions for WordPress 4.8:

    From your WordPress dashboard, go to “Appearance -> Menus” In the “Edit Menus” tab, select “Custom Links” For the URL, Enter “#” (no quotes) For the link text, enter your desired text for the top level of your drop-down menu Click the “Add to Menu” button Drag the menu item to its desired position within your menu For the menu item you just added, click the down arrow to the right of the item (it will read “custom link” to the left of the item) Remove the “#” from the URL. This – in all browsers – will convert the link to plain text. Click on the “Save Menu” button”

    This instruction worked fine before WP 5.0

    Someone who can help me?

    Kjell Sweden

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • What menu item do you want to have “unclickable”? (I’m putting the word in quotes since you still can click it, it’s just that the link doesn’t open any new page…)

    Thread Starter Kjell Reinedahl

    (@kjell-reinedahl)

    Hello Tor-Bjorn!

    Yes, I dont′t want a new page, I just want to choose one of the menu items below.

    The menu items I want to be “unclickable” are:

    “ATT SKAPA”, “SL?KTFORSKNING”, “V?RA RESOR”, “GUTENBERG”, “MINNEN” and

    “Om till?gg” (under the menu “WP-HJ?LP)
    “Om bilder” (under the menu “WP-HJ?LP)
    “Om film” (under the menu “WP-HJ?LP)
    and
    “Ungdomen”, “Ton?ren”, “Lumpen”, “Arbetslivet”, “Fr?n resor”, “Andra minnen” and “P?rlor fr?n barn och barnbarn” (all under “MINNEN”)

    There are two totally different ways to create the menu structure of a site.
    1. The menu can be automatically created based on the structure of all pages on the site. If you use this option, then you can’t do any customization of the menu (like adding “dead” entries, or adding menu items that actually link to a totally different website, or menu items that open specific posts in your blog.)
    If you’re currently using this solution, then you need to create a new menu, say “my-menu1” and link it to the relevant menu position in your theme. (Disclaimer – I don’t use Graphy myself, so please excuse me if I don’t know what your menu positions are called.)

    2. The menu can be created and maintained manually. There’s a check box you can tick if you want WordPress to automatically add new pages you create on the main level. Depending on how you work, that may be helpful or not…
    There are also plugins that can synchronize your menu to your current structure of pages. That can be useful to get a good starting point before you start customizing your menu.

    Now: having established that you’re using a “manually maintained” menu (point 2 above), you can now start customizing your menu.
    There are two main entrance points for this:
    Either you use “Customize – menu” (Anpassa-meny) in the top bar and get access to the menu that happens to be visible on your current page,
    or (in my opinion better) you enter the menu handling from the admin panel Appearance – menus (Utseende – menyer).

    You’ll be presented with a visual structure of your menu. Various menu levels are represented by horizontal shift. You can drag menu items up and down to sort them, and right-left to set their menu level.
    You can open a menu item by clicking on them and then you get access to edit them.
    Here you can change the URL for a menu item to # to make it lead nowhere. Actually, it’s a link to an undefined position in your currently viewed page.

    Remember to save your menu when you’re done.
    And also: A “menu” in WordPress is a data structure. In order for it to be visualized as a menu, you need to connect it to a menu position that is available on your site. A typical theme will offer you one or two menu positions. There are also plugins that can create menu positions in widgets or inside the content of a page or a post.

    Please let me know how you manage.
    /Tobi
    PS! Next time you’ve got a general question, you’re also welcome to ask in Swedish over at sv.www.ads-software.com/support/ ??

    Thread Starter Kjell Reinedahl

    (@kjell-reinedahl)

    Hello again! (Hej igen!) ??

    I don′t know how to attach imagery so if you go to this adress you can se them.

    https://www.gubbenogumman.se/gutenberg/fraga-ang-menyhantering/

    (Tack s? hemsk mycket f?r l?ngt och utt?mmande svar. jag tror jag f?rs?kt det du beskriver dock inte utan att lyckas. Skall leta efter “Till?gg”)

    Mvh

    Kjell

    Jag har just provat p? min testwebbplats som k?r WordPress 5.0.3 och f?r mig fungerar det alldeles utm?rkt att l?gga till ett “anpassat menyalternativ” med URL “#”.
    Om du orkar, kan du prova om det fungerar b?ttre med dina olika till?gg inaktiverade och/eller om du (tillf?lligt) byter till n?got standardtema (Twenty-n?gonting).

    Thread Starter Kjell Reinedahl

    (@kjell-reinedahl)

    Tack f?r tipsen. Jag har sj?lv funderat p? om det kan vara n?gon “kollision” mellan olika till?gg. Har inte r?kat ut f?r det tidigare, men det kanske inte ?r helt ovanligt?

    Har inte testat med att byta till n?got annat tema. har inte v?gat, eftersom jag inte har klart f?r mig om det finns risk f?r att man “f?rst?r” sin egen sida om man byter och sedan byter tillbaka igen eller om den d? ser ut precis som tidigare.

    Mvh
    Kjell

    H?r av mig om jag lyckas / misslyckas med tipsen ovan s? att du f?r en feedback p? dina tips.

    Vanligtvis ?r olika inst?llningar kopplade till temat, s? n?r du byter tillbaka till ditt tidigare tema kommer dina tidigare inst?llningar f?r temat att finnas kvar.

    F?r s?kerhets skull kan du givetvis g?ra en backup av databasen innan du ?ndrar n?got.

    Thread Starter Kjell Reinedahl

    (@kjell-reinedahl)

    Ok, d? vet jag det.

    Thread Starter Kjell Reinedahl

    (@kjell-reinedahl)

    Hej Tor-Bjorn!

    Har nu ?ntligen f?tt ordning p? min meny. Vad jag har gjort kan du l?sa om p? sidan

    https://www.gubbenogumman.se/gutenberg/fraga-ang-menyhantering/

    l?ngst ned.

    Tusen tack f?r den hj?lp jag f?tt. Den ledde mig s? sm?ningom till en l?sning.

    Mvh
    Kjell Reinedahl

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘I can′t make the menu unclickable in an easy way’ is closed to new replies.