• 0

Would like help troubleshooting some WordPress CSS


Question

Hey all,

Thought I'd ask the people of the good ship Neowin to see if they can help. I've purchased a Wordpress theme and was using it fine until I decided to use drop down menus.

They are there but the background on the menu when it drops down isn't. I've tried a few tools to see what css selector it might be.

Can anyone out there lend a hand. It's the main drop down menu at essentialmac.co.uk.

Thanks in advance

6 answers to this question

Recommended Posts

  • 0

Thanks for the code, ill get it added shortly.

Right now I'm wondering why the smallest file on my server, selection.php which only contains this ..

a {

?color:#31ABC5;

}

a:hover {

?color:#111111;

}

Is causing a 15 second wait time.

Edited by shifts
  • 0

Thanks for the code, ill get it added shortly.

Right now I'm wondering why the smallest file on my server, selection.php which only contains this ..

a {

color:#31ABC5;

}

a:hover {

color:#111111;

}

Is causing a 15 second wait time.

This isn't PHP, perhaps that's causing issues. Are you sure this shouldn't end with .css? I get a 1.036s waiting time on the file though, not 15s.

This is a strange file as well... wp-content/plugins/gd-star-rating/css/gdsr.css.php, which only contains css. Dunno, I'm only using Dragonfly and viewing the front page files list.

  • 0

It was an interesting one. I added a cname with my domain name register to add just essentialmac without the WWW and suddenly things started loading like I thought they would do.

Yup, I know it's not PHP so I contacted the developer of the wordpress theme but had no reply so I've no idea what css is inside a php file.

Im staring to think that W3 Total Cache may be a touch advanced for my actual needs and might shift to something simpler.

I'm struggling to find out where to add that css if anyone can shine a light.

  • 0

I personally use Firefox with Firebug installed, using both of those together, it really makes things smoother when trying to find the correct CSS file. Caching while developing though is a big PITA. Disable the cache in Cloudflare too (I looked at your DNS records), until you are ready to deploy. It will save you time in the long run.

Might want to look for the css in this file though:

http://www.essential...g/css/style.css

:)

  • 0

It isn't in a separate CSS file but in a PHP file that adds a style to the li marked in red.


<div id="menu">
<ul id="menu-deals-and-discounts-codes" class="menu sf-js-enabled sf-shadow">
<li id="menu-item-3454" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-3454">
<a href="http://www.essentialmac.co.uk/category/deals-offers/">Deals & Offers</a>
</li>
<li id="menu-item-3524" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-3524">
<a href="http://www.essentialmac.co.uk/tag/reviewed/" class="sf-with-ul">
Reviewed
<span class="sf-sub-indicator"> ?</span>
</a>
<ul class="sub-menu" style="float: none; width: 12em; display: none; visibility: hidden">
<li id="menu-item-3525" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-3525" style="float: left; width: 100%; white-space: normal">
<a href="http://www.essentialmac.co.uk/tag/iphone-accessories/" style="float: none; width: auto; padding-left: 15px;">iPhone Bits</a>
</li>
<li id="menu-item-3523" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-3523" style="float: left; width: 100%; white-space: normal">
<a href="http://www.essentialmac.co.uk/tag/ipad-accessories/" style="float: none; width: auto; padding-left: 15px">iPad Accessories</a>
</li>
</ul>
</li>
</ul>
</div>
[/CODE]

[color=#ff0000]style="float: none; width: auto; padding-left: 15px"[/color]

You can add a background css property to the style in the PHP file, like

[color=#FF0000]style="float: none; width: auto; padding-left: 15px; background:#ce0;"[/color]

Try "Search in files" for [color=#FF0000]float: none; width: auto; padding-left[/color] using Notepad++

Tip of the week! :)

Opera and it's built in Dragonfly web development tool, the greatest there is! :D

This topic is now closed to further replies.
  • Posts

    • Still 3x what it should cost. So, it seems the trick is to increase price by 6x so that a reduction in price back to 4x looks like a steal. "You savvy shoppers win again!" I'm glad I'm not in a desperate spot to actually even need this overpriced crap. Hopefully, it comes back down by the time for when (or if) I ever do.
    • Although AI is great and has it's use cases they likely have massively overhyped it and it has not delivered as per their expectations. I fully expect them to start saying the same things again when it does get to a certain level of intelligence!
    • Microsoft wants to end printer driver headaches with Windows Ready Print by Usama Jawad A few days ago, Microsoft released Windows 11 Experimental build 26300.8553, bringing a ton of enhancements such as Start menu customization, search improvements, Taskbar polish, and other minor UI tweaks. Another relatively major enhancement snuck deep within the change log was related to upgrades to the Windows printing experience. Now, Microsoft has shared more details about these benefits. For starters, Microsoft has renamed its Modern Print Platform to Windows Ready Print. The company believes that this name highlights its shift in strategy, which now focuses on modernizing, securing, and streamlining the printing experience for Windows devices. Some of the upgrades present in Windows Ready Print have already been seeded to customers and partners. This includes ending support for third-party printer drivers via Windows Update and transitioning towards the Internet Printing Protocol (IPP) and the native Windows IPP printer driver. In line with these changes, new printer installations will default to Windows Ready Print on eligible devices starting from July 2026. However, Microsoft recognizes that not all environments will be able to migrate to this platform immediately, so it will allow users to choose between installing the printer via Windows Ready Print or the traditional OEM process. Users will be able to toggle this configuration through Settings > Bluetooth & Devices > Printers & Scanners > Printer preferences. This control applies only to new printer installations, and its functionality can also be modified via Group Policy as follows: Launch Group Policy Editor Navigate to Local Computer Policy -> Administrative Templates -> Printers Find and select 'Configure Windows Ready Print driver ranking' -> double click to open it Select 'Enabled' (if you wish to enable Windows Ready Print driver selection) or 'Disabled' (if you wish to explicitly disable Windows Ready Print driver selection). Select Apply Select OK Similarly, if you set up Windows protected print mode through the same setting in Windows 11, it will also default to using Windows Ready Print exclusively. Microsoft hopes that these improvements will help eradicate dependency on OEM-specific driver installation processes and simplify printer installations. We'll likely find out more about other tangible benefits in the coming months.
    • Hey what's about the proton vpn firefox extension ? It's not working today
  • Recent Achievements

    • One Year In
      Primer1st earned a badge
      One Year In
    • Experienced
      JayZJay went up a rank
      Experienced
    • Reacting Well
      Sir_Timbit earned a badge
      Reacting Well
    • Week One Done
      rubentuben8 earned a badge
      Week One Done
    • Week One Done
      ARaclen earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      513
    2. 2
      PsYcHoKiLLa
      230
    3. 3
      Edouard
      138
    4. 4
      ATLien_0
      87
    5. 5
      Steven P.
      81
  • Tell a friend

    Love Neowin? Tell a friend!