• Resolved dunkelbunt

    (@dunkelbunt)


    Hey there,

    I’ve been trying now for hours to center the menu of Pilot Fish. I’ve seen the topic posted here earlier but none of the ‘margin: auto’ hints seem to work. In fact – there are not that many margins left where I haven’t tried adding an auto command…

    My understanding of CSS is very basic, admittedly – and there is something I am not grasping… Please help me finding out what it is… 🙂

    Thanks in advance and cheers,
    me.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Let’s see your site please.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    So you’ve come across suggestions for a Child Theme or Custom CSS plugin, right? Which do you have?

    Thread Starter dunkelbunt

    (@dunkelbunt)

    Mh… I was so sure I’d enabled email notification for this thread. Sorry for not answering in a timely manner…

    I’m really sorry, but atm I don’t want to publish the sites url yet. :/

    Rereading my original question, I am not sure if it becomes clear that I actually mean the menu on Home (below page title, the ‘Home | About | Parent Page’ part). So… all suggestions I tried to follow concerned the Pilot Fish theme.

    I hope there is a way to help even without looking at my site – it hasn’t been customized a lot anyway.

    Thanks for trying to help, Andrew! 🙂

    Thread Starter dunkelbunt

    (@dunkelbunt)

    Okay… it’s me again… I am sorry, but I really would appreciate help on this.

    For no good reason I hadn’t found until now these FAQs:
    http://wordpress.danielatwork.com/pilotfish/faq/

    So I reset the style.css back to the original and did the proposed changes – and nothing happened. Nothing was centered like it was supposed to…

    :/

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    I’m really sorry, but atm I don’t want to publish the sites url yet. :/

    That’s disadvantaging you greatly from receiving support.

    Thread Starter dunkelbunt

    (@dunkelbunt)

    I don’t want to be impolite but… since I haven’t changed anything major in the style.css and it isn’t working with the original css as well…

    Mh… I guess, I’ll give up. Thanks anyway for your patience.

    Do you have a custom CSS plugin added?

    IF so, try adding this there:

    #access .menu, #access .menu ul {
        display: table;
        margin: 0 auto;
    }

    Not sure it will work without seeing your site…

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    since I haven’t changed anything major in the style.css and it isn’t working with the original css as well.

    Then you can demonstrate the issue by linking the demo website (if the demo site is the same as yours).

    The issue we see is that you said you’ve tried the common CSS techniques of centering the menu and it has not worked, which leads us to think something is different about your website in particular.

    By linking your site, we will be able to debug why the CSS you have used to center the menu has not worked.

    Thread Starter dunkelbunt

    (@dunkelbunt)

    Good morning,

    @wpyogi: I have no custom CSS plugin added… but… I added your code to both #’s in the Pilot Fish CSS and it worked. 🙂 Thanks so much!

    @andrew: Wouldn’t the demo site not just be the Pilot Fish demo? So I would link this, right?

    http://wordpress.danielatwork.com/pilotfish/

    I understand the issue, but – although very flattering – I think the major mistake was to assume that I know common CSS techniques and fully understand what I am doing. 🙂 The code WPyogi suggested looks to me very common but I just wasn’t aware of that display-table-thingy and that it needs to be there (which seems to be the difference to what I’d tried before).

    So… I just marked this topic as resolved, the site looks beautiful now and I am really grateful for your commitment and patience! Thank you!

    I have no custom CSS plugin added… but… I added your code to both #’s in the Pilot Fish CSS and it worked. 🙂

    Changing theme files is not smart – your changes will be overwritten when the theme is updated. You can easily add custom CSS via a plugin such as Custom CSS Manager.

    Thread Starter dunkelbunt

    (@dunkelbunt)

    Thanks for mentioning… So far, I have always saved the CSS (and the other) files of a theme before updating anything. In this case, I don’t think, anything will be updated in nearer future – the page is more of static nature.

    But… I’ll look up that Custom CSS Manager anyway – for future stuff and just because learning more about how WP works best is somehow usefull, I guess. 🙂

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Center menu’ is closed to new replies.