Support » Theme: Graphy » I can´t make the menu unclickable in an easy way

  • 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…)

    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.wordpress.org/support/ 🙂

    Hello again! (Hej igen!) 🙂

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

    http://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).

    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.

    Ok, då vet jag det.

    Hej Tor-Bjorn!

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

    http://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.