How to Add Image Icons With Navigation Menus in WordPress

Do you want to add image icons in your WordPress navigation menus? Recently, one of our users asked for an easy way to add menu icons. In this article, we will show you how to add image icons with navigation menus in WordPress.

Adding navigation menu icons in WordPress

Why You Should Add Image Icons with Navigation Menus?

Usually, WordPress navigation menus are plain text links. These links work for most websites, however, you can make your navigation menu look more interactive by adding image icons.

Image icons can also be used to make your menu more noticeable. For example, a beautiful image icon next to your contact page can make it standout among other links in your menu.

With that said, let’s take a look at how to easily add image icons with navigation menus in WordPress.

Method 1: Adding Menu Icons Using a Plugin

This method is easier and it’s recommended for beginner users because it doesn’t involve code.

The first thing you need to do is to install and activate the Menu Image plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit Appearance » Menus page.

From here, you can click on any menu item in the in the right column to expand it. You’ll see the ‘Menu image’ and ‘Image on hover’ buttons in settings for each item.

Menu image buttons

Using these buttons, you can select or upload the menu image icon you want to use. If you want, then you can just upload a menu image and ignore the hover image.

In the ‘Image size’ dropdown, you can select a size for the image icon. This size will apply to both the menu icon image and image on hover.

The plugin comes with multiple options to choose from. However we recommend to keep menu icons small by using 24×24 or 36×36 sizes.

Menus icon size

If you want to add your own custom size for the menu images, then you can do that by adding this code in your theme’s functions.php file or site-specific plugin.

add_filter( 'menu_image_default_sizes', function($sizes){
 
  // remove the default 36x36 size
  unset($sizes['menu-36x36']);
 
  // add a new size
  $sizes['menu-50x50'] = array(50,50);
 
  // return $sizes (required)
  return $sizes;
 
});

You can also set the title position above, below, before, or after the image icon. It also allows you to hide the title and only display the image icon for each navigation menu.

Title position

Once you have configured the settings, simply add image icons to all your navigation menu items separately. Next, you need to click on the ‘Save Menu’ button to see menu icons in action.

Image icons in navigation menu

Method 2: Adding Menu Icons Using Code Snippet

This method is for more experienced users who know their way around CSS.

First, you need to visit Media » Add New to upload all your image icons in WordPress. Once uploaded, you need to copy their URLs and paste them in a text editor like Notepad.

Next, you need to go to Appearance » Menus and click on the ‘Screen Options‘ button at the top right corner of your screen. In the screen options, you need to check the ‘CSS Classes’ option.

Add CSS classes

After that, scroll down and click on any menu item to expand its settings. You’ll notice a ‘CSS Classes (Optional)’ field where you need to add a CSS class name for the menu item.

Add class name

Now you need to add this custom CSS to your theme.

.homeicon {
background-image: url('http://www.example.com/wp-content/uploads/2018/09/home.png');
background-repeat: no-repeat;
background-position: left;
padding-left: 5px;
}

In this CSS snippet, .homeicon is the class name that you added in the CSS Classes field above.

Depending on your theme, you may need to tweak the CSS a little bit to get the perfect placement for menu icons. Once you are satisfied with the result, repeat the process for all menu items.

That’s all. We hope this article helped you learn how to add image icons with navigation menus in WordPress. You may also want to check out our guide on how to style WordPress navigation menus.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Add Image Icons With Navigation Menus in WordPress appeared first on WPBeginner.

Source: Wordpres

The post How to Add Image Icons With Navigation Menus in WordPress appeared first on TuneMaster.ml.

Mate 20, OnePlus 6T, and more – Every phone launching in October 2018

Pixel 3 XL hands on

New phones get launched every month of the year, but it looks like the October 2018 smartphones are going to be something else. Not only are we seeing six major launches in the span of only a few weeks, but some of those devices are the most highly anticipated releases of the entire year.

It’s a little event we’re referring to as #phonepocalypse.

The biggest release of them all is obviously the Google Pixel 3 and Google Pixel 3 XL, but we’ve also got some heavy hitters from OnePlus, LG, Samsung, and more. These launches are not only for smartphones: the events will also likely be launching pads for accessories and other products.

All of these companies are hoping that by releasing devices in October they’ll have a better shot at getting your holiday shopping money. If you plan on spending some cash on smartphones or smart gear in the next few months, you’ll want to go into October with a good idea of what to expect. With the list below, you can get the basics of what October 2018 smartphones are on the way and prepare accordingly!

Bring on the #phonepocalypse!

October 3 — LG V40 ThinQ

LG launched the LG V40 ThinQ on October 3. The V40 ThinQ continues the trends of LG’s V-series phones with its ultra-premium features, including a triple-lensed rear camera, a 32-bit DAC (with a headphone jack), two front-facing lenses for superior selfies, and more.

The LG V40 ThinQ specs include the expected flagship details: a Qualcomm Snapdragon 845, 6GB of RAM, 64 or 128GB of internal storage, IP68 certification, and a 6.4-inch OLED display.

Editor’s Pick

All those premium features come at a price, though: the LG V40 ThinQ will start at $900 at some carriers and go as high as $980 at others. That doesn’t make it the most expensive phone of the year or anything, but certainly isn’t easy on the wallet, either.

We spent some time with the LG V40 ThinQ and found it to be a very capable handset with some killer features. However, we felt it had poor battery life, a weak camera considering how many lenses are available, and of course — that high price was hard to swallow.

Check out our full review of the LG V40 ThinQ by clicking here.

As a side note, LG also launched a new smartwatch on October 3: the LG Watch W7. The device is notable for being a hybrid, having a touchscreen face as well as mechanical hands.

October 4 — Nokia 7.1

HMD Global launched the Nokia 7.1 on October 4. The Nokia 7.1 is an incremental upgrade over the Nokia 7, which launched in October 2017. This is not to be confused with the Nokia 7 Plus, which launched in February this year — that phone is a whole different animal.

The Nokia 7.1 is a mid-range Android One handset. It comes with Qualcomm’s Snapdragon 636 chipset, and the option of either 3GB of RAM and 32GB of storage, or 4GB of RAM and 64GB of storage.

Editor’s Pick

However, the only model that will be available in the United States is the 3GB/32GB version. Did we mention the device is coming to the U.S.? Well, it is! Unlike the Nokia 7, the Nokia 7.1 will launch globally instead of being a China exclusive.

The Nokia 7.1 will cost $349 in America, while Europeans will have two choices: the 3GB/32GB variant for 319 euros (~$369) and the 4GB/64GB variant for 349 euros (~$404) respectively.

Pre-orders for the Nokia 7.1 open on October 5 and the device will get a general sale on October 28.

As a side note, HMD Global also launched two new sets of wireless headphones on October 4 which will launch in the U.K. and Europe before the end of the year.

October 9 — Google Pixel 3 and Pixel 3 XL

Of all the devices on this list, none has had more of a rollercoaster ride this year than the Google Pixel 3 XL. Months before the scheduled unveiling of the latest flagship from Google, a black market seller pawned off dozens of prototype versions of the Pixel 3 XL, letting the world see pretty much everything there is about the device.

Now that the Pixel 3 and Pixel 3 XL are both officially launched, we no longer have to base what we know about it from leaked info.

At the hardware event where Google launched the phones, the company placed a huge emphasis on the photography capabilities of the Pixel 3. As such, most of the features of the device center on taking photos, including wide-angle selfies, simple retouching, a new Night Mode, and more.

Editor’s Pick

Other than that, most of the specs and information we already knew from the multiple leaks. If you somehow missed all that, you can see a full rundown of the specs for the Pixel 3 and Pixel 3 XL here.

Google also significantly raised the price for the Pixel 3 while slightly increasing the price of the Pixel 3 XL. The Google Pixel 3 starts at $799 for the 64GB model and the 128GB model goes for $899 (the Pixel 2 was $649 and $749 respectively). The Google Pixel 3 XL price-raising is less extreme, starting at $899 for the 64GB variant and going all the way up to $999 for the 128GB model (the Pixel 2 XL was $849 and $949 respectively)

Additionally, Google launched a new tablet called the Pixel Slate and a new smart display called the Google Home Hub. No other new hardware items were announced.

And in case you missed it, we recorded a podcast immediately following the event. You can listen to it here:

October 10 — Razer Phone 2

The Razer Phone 2 officially launched in the late hours of October 10. Although the phone looks remarkably similar to the original Razer Phone, underneath the hood are a lot of upgrades that either address problems present on the original or amp up the capabilities of the device.

The original Razer Phone launched to much fanfare in 2017 as the first smartphone geared specifically towards gamers for gaming. Since then, other companies have either launched or said they will launch their own gaming phones, but the Razer Phone is definitely the OG when it comes to the modern gaming phone trend.

All in all, the Razer Phone was a solid piece of hardware, with some incredible specs (hello, 8GB of RAM!) and a more-than-reasonable price. However, reviews were lukewarm for the phone, mainly due to its abysmal camera (which Razer has since made much better through software updates).

Editor’s Pick

The Razer Phone 2 brings the most common upgrade to this year’s flagships — namely the Qualcomm Snapdragon 845 processor — and keeps the best of the specs from the OG Razer Phone, like 8GB of RAM, a 4,000mAh battery, a microSD slot, and more. However, internal storage didn’t get an upgrade (still stuck at 64GB) and there’s still no headphone jack. If that last part irks you, don’t worry: included in the box with the device is a USB Type-C adapter with a 24-bit DAC built in, which is certainly a nice touch.

One of the bigger changes to the phone is the introduction of Razer Chroma lighting effects to the Razer logo on the back of the phone. This acts as a notification light, and you can completely customize the color scheme, how it flashes, etc. You can also turn the whole thing off if you want to save battery, but honestly? This light is super cool and really sets the phone apart from the pack.

Speaking of the pack, the Razer Phone 2 bucks the trend of top-tier smartphones nearing the $1,000 mark. The Razer Phone 2 starts at $799, which is obviously not cheap, but considering the specs and features, it makes the phone very attractive compared to some of the other devices on this list (*cough* LG V40 *cough*).

October 11 — Samsung Galaxy A9

Samsung managed to keep the lid on exactly what it would launch on October 11 up until only days before the event. Now we know Sammy brought us the 2018 Samsung Galaxy A9 — the first smartphone to feature four rear camera lenses.

Earlier this year, Samsung told us it would start releasing much more competitive devices in its mid-range line-up, and the Samsung Galaxy A9 certainly lives up to that promise (even if it barely is a mid-ranger, but more on that in a minute). The device’s four cameras (five total counting the front sensor) are its most notable feature, but it also has some very decent specs, especially from the notoriously stingy Samsung.

Editor’s Pick

The Samsung Galaxy A9 comes with a Qualcomm Snapdragon 660 chipset — the Nokia 7 Plus and BlackBerry Key2 notably feature the same processor — and 6GB or 8GB of RAM. There’s also 128GB of internal storage, which you can expand even more with the microSD slot. Everything is powered by an impressive 3,800mAh battery and the phone runs Android 8.1 Oreo.

Normally, a phone like this from Samsung — which features many similar specs as its flagship devices — would cost an arm and a leg. While Samsung isn’t selling the Galaxy A9 for the low prices the likes of OnePlus will offer, it is at least getting closer to the right ballpark: the Galaxy A9 starts at 599 euros in Europe and 549 pounds in the U.K., which is about $725 in the U.S. Once again, still too expensive, but Samsung is at least getting better.

October 16 — Huawei Mate 20 and Mate 20 Pro

XDA-Developers

The Huawei Mate 10 Pro was our favorite smartphone of 2017, and from the way things are shaping up, the Huawei Mate 20 Pro could be a major contender for the 2018 prize.

We’ve seen a few leaks of the Mate 20 and Mate 20 Pro already, but not nearly as many as we saw for the Google Pixel 3 XL. As such, we know quite a bit about the phone, but there’s still a lot of mystery.

Editor’s Pick

That being said, we do have some good info about the features of the Mate 20 line, most notably the expected launch of the Kirin 980 processor, which will be the first 7-nanometer chipset in an Android device. This could potentially make the Mate 20 the fastest and most power-efficient Android phone on the market when it launches on October 16, as all the other flagships on this list are expected to ship with 10nm chips.

The Mate 20 and Mate 20 Pro are also expected to have triple rear cameras, like the Huawei P20 Pro. Huawei has been teasing the alleged square arrangement of the camera lenses and flash for a bit now.

We also are fairly certain that the Mate 20 will feature wireless charging, which is great since the Mate 10 has a glass back but curiously didn’t include the feature. We also suspect that you’ll be able to use the Mate 20 to wirelessly charge other devices, like the upcoming Huawei Freebuds 2 Pro.

NEXT: Huawei Mate 20 — All the rumors in one place

October 18 — Asus ROG Phone

It was in June when we first got a hands-on with the Asus ROG Phone — the first gaming phone from the venerable electronics company. Now, it looks like we’re finally going to see the device released with a surprise October 18 event which the company just announced.

Editor’s Pick

Asus posted a tweet via its official Twitter account that shows a closeup shot of the ROG Phone along with the October 18 date and the words “Coming to New York.” This definitely suggests the ROG Phone will finally get an official launch in New York City on October 18.

Turns out, that theory is correct, as Asus confirmed that the event will be the U.S. launch of the ROG Phone. There will be two variants — with 128GB of storage or 512GB of storage — which will cost $899 and $1,099 respectively.

You can click here to see our hands-on review of the Asus ROG Phone.

NEXT: Asus ZenFone 5Z review: the “flagship killer” killer

October 30 — OnePlus 6T

OnePlus 6 vs OnePlus 6T render WinFuture

We originally speculated that the OnePlus 6T would launch on October 17, but OnePlus recently confirmed the launch will happen instead on October 30 in New York City. You should be able to get your hands on the device shortly after, likely on November 6 for most areas of the world.

The OnePlus 6 is one of the most successful devices in the company’s history, selling a million units faster than any previous device as well as being the top-selling device in India for a time. The OnePlus 6T will likely be another huge success for the company, as it will introduce some new features (most notably an in-display fingerprint sensor) and — for the first time ever — launch in T-Mobile stores in the United States.

Editor’s Pick

However, OnePlus fans were dismayed to find out that the OnePlus 6T will not have a headphone jack. OnePlus is one of the few companies that held onto the jack for a long while, even mentioning on stage during the OnePlus 6 launch that it still believes in the jack.

No matter what, the OnePlus 6T is shaping up to be one of the most exciting smartphones of the year, which is especially noteworthy when you see the other brand names on this list.

NEXT: OnePlus 6T — All the rumors in one place

Source: Android Zone

The post Mate 20, OnePlus 6T, and more – Every phone launching in October 2018 appeared first on TuneMaster.ml.

Third-generation Chromecast review: 1080p is the new baseline

Google announced a bunch of products at its 2018 hardware event, but it wasn’t all that surprising — just about everything leaked out in the weeks leading up to the event.

We even saw a device leak out that wasn’t even shown on stage. A few weeks before the event, Best Buy started accidentally selling the third-generation Chromecast. After the event wrapped up, the new Chromecast appeared on the Google Store and a few other retailers’ websites. Now that it’s shipping and we’ve had some time to use it, here is our 2018 Google Chromecast review.

The hardware

Third-gen Chromecast
Third-gen Chromecast
Third-gen Chromecast

Looking at the new Chromecast, the design of the player hasn’t changed much compared to the outgoing model. The body of the device is still a puck-like shape that includes an attached HDMI cable. Additionally, Google decided to keep the streaming player’s MicroUSB port used to power the device instead of upgrading to USB Type-C. There’s still a small button for manually resetting it, and a LED light that indicates the Chromecast’s state.

There are minor changes, but they’re almost all on the surface layer. While the newer hardware is slightly thicker to accommodate the updated internals, it’s not a difference most people will notice. Besides that, the glossy finish on the body of the Chromecast has been swapped out for a matte texture, and the Chrome logo that was stamped onto the device has been replaced with Google’s “G” icon. 

Another minute change that doesn’t affect the device at all is the removal of the Chrome logo from the included AC wall adaptor.

The software

Third-gen Chromecast
Third-gen Chromecast

Compared to the second-gen Chromecast, there are two software changes: support for multi-room audio and the ability to playback content at 1080p 60fps. The first change is fantastic if you’re someone like me who owns multiple Google Assistant speakers and/or Chromecast Audio devices and like to simultaneously play music in every room of my house. With the feature becoming available on the Chromecast, you’ll be able to add your TVs into your audio group. 

Unfortunately, this feature is not yet live so we couldn’t test it, but it should be available later this year. 

The most prominent change is support for 1080p 60fps playback. Believe it for not, the last Chromecast was announced over three years ago and has been limited to 720p this entire time. In a world in which more content is moving towards 4k, it seems pretty astonishing that Google’s baseline streaming device only now supports Full HD. 

Other than those two additions, the third-gen Chromecast works identically to all of its predecessors. Once it’s set up, the device’s home screen will slowly move between various photos and points of interest and playback controls still remain on your smartphone, tablet, or computer.

Editor’s Pick

Here’s how it works: once you’ve found something you want to watch either online or within an app, tap on the cast icon, choose which Chromecast you want to watch the content on, and the video should appear on screen within a couple of seconds.

Remember, even though you selected the video on whatever device you have with you, that content isn’t being sent to the Chromecast directly. By telling the video to cast, you’re directing the Chromecast to pull the video from that location.

So, should you buy it?

Google’s Chromecast is a product that you either love or you hate. For people like me who always have an electronic device nearby, the ease of use is a clear benefit. At any point, I can look down at my phone, find something I want to watch, and send it to my TV. But for some people, the extra step of casting content from one device to the other adds complication to the television-watching experience.

So if you do prefer to have something with a remote that allows you to scroll through and select something to watch, then you should check out the Nvidia Shield TV or another Android TV-powered set-top box. With these, you can download video apps and games while also retaining the ability to cast content to your big screen from other devices just like with a Chromecast. 

Read next: Google Pixel 3 and Pixel 3 XL hands-on

If you already own the second-gen Chromecast, the decision to get the new model is a bit tricky. You’re getting a modest video quality upgrade going from 720p to 1080p, but as I mentioned previously, a lot of content out there is already moving towards 4k. So, in a way, you’re already putting yourself at a disadvantage going forward. 

Fortunately, Google does make the Chromecast Ultra which supports 4k playback. Unfortunately, it costs $70, which is double the cost of the third-gen Chromecast. This plus the fact that competitors like Roku have streaming devices that can handle 4k content for as low as $40 makes the decision even more complicated. 

If you’re interested in picking up the third-gen Chromecast for yourself, you can do so by clicking on one of the buttons below. While the streaming device is available from the Google Store in both chalk and charcoal for $35, Best Buy and Walmart currently appear to only sell the charcoal variant. But as I’ve already mentioned to several people, the colorway shouldn’t matter too much as the Chromecast will be plugged into the back of your TV and you’ll never see it again. 

Source: Android Zone

The post Third-generation Chromecast review: 1080p is the new baseline appeared first on TuneMaster.ml.