Credits :WPShout
trying to talk about the widget logic plug-in this is a really good plugin if you’re already a developer and you’re familiar with what WordPress calls conditional tags these are really cool there things like if he is home is front page is Page and then you can like do IDs or slugs or is category that kind of stuff if you know about how can use one easy way to write some pseudo code of round them would you like to get straight I already got it running here and what it does is on all your widgets I’m in the customizer in here I have the ability to write some essentially PHP pseudocode that would you logical evaluate so you can see here on the right side

that it’s not showing on my about page the pages which it but if I go to my homepage here

it’s also not showing it because you can’t put semicolons in which a logic this is an example of why I don’t trust this sort of thing quite as much as some of the other ways you can control widget displays jetpacks is one that comes to mind immediately I know there was a couple other a widget control plugins that are a little more robust in this so which is really cool if you like times it’s a pretty popular plug-in which is part of the reason we’re covering it but I honestly find it a little hard to think about news because

of the way to logicworks but

if I only want this to Shawnee about Paige and I write it this way it’ll only showing me about page I go back to the homepage and it should be grayed out because with that logic is written in a way that when you’re previewing it it like in the customizer you’re going to see great out where is if I close the customized Raptor save that change I no longer see that so it’s a really interesting view I kind of like that part of it but I’m not sure that I love the idea of writing this weird pseudocode that requires a knowledge of conditional tax so it’s not for everyone but it does work is pretty cool if you are already writing that additional packs and want to have that fine grain control at some of the more you I based options don’t have so if you’re on YouTube like And subscribe because that’s how we get more subs

we haven’t yet go to tidy way of registering or logging in to the site as a learner

in this lesson will make a Logan which it controller to p s using the plug in which it logic

in the test browser click on home at the moment we take him to a dummy post change this by going to settings reading

when changing front page displays from your latest posts to aesthetic page in choosing courses from the list

click save changes and refresh the site in the test browser know we have the course list does the homepage

let’s delete the dummy page in the post set up as default by WordPress let’s go to post old posts and delete have a weld

and then do the same and Pages deleting sample page

that will do the Logan which it go to appearance widgets and remove all the existing widgets by dragging them to the available widgets area

then at the email below game widget for dragging it to the med Side bar area

go back and refresh the page again and now we have the Logan widget that we can locate using the test accounts that we set up early out

which it will display or widget eyes pages to control where it appears we can use the plug-in widget logic

go to plugins at new and search for

install

inactivated

now back to parents which its individual have a new option where you can and two conditions for water should a

you can choose to display which is only on a certain page of pages using widget logic codes

these codes are available on the plug-ins homepage and I put the link in the lesson text

to use it you need to know the ID numbers of the pages that you’re working on

open the dashboard in a new tab

and go to Pages or pages

and then hover with the mouse over the page that you want to control and notice the ID number in the status bar at the bottom of the screen for for the courses page

go back to the widget logic option of the widget and enter the code is page for the Logan wage it will Now display only on the front page you can decide where you wanted to pay it on your side you can decide what you want it to appear on your side

these codes can be very sophisticated as you can see from the examples here for example is very easy to make it visible to load in all logged out uses only using the code shown here

that we can use that way just to log in and out we’ll conveniently in the next class and we will go through the pages and settings email but and set those are properly

Add a review

Origin Ten  Ltd,
Queens House
200 Lower High Street
Watford
WD17 2EH

Stay tuned

Exceptional quality. Ethical factories. Radical Transparency. Shipping and returns.

    Privacy Preference Center