Braad
Forum Replies Created
-
Forum: Plugins
In reply to: [Mm Ajax Login] Mm Ajax LoginHello bwickert,
I’m happy to help you get the plugin working. I’ve just tested it in a fresh install with Twenty Ten and it’s working great for me.
This plugin is all about a transparent check for whether the logged in. If the user is already logged in when they click the link, they won’t see a login form, because they are already logged in. This means that if you’re testing the plugin while logged in, you won’t see the login form.
If you aren’t seeing the login form when you click the link and you’re sure you’re not logged in, then the problem is either that the link is missing the ‘ajax-login-trigger’ class, or there is a JS error. You’ll know there is a JS error if you see it in your browser console, and the HTML for the trigger link should look something like:
<a href="/some-page" class="ajax-login-trigger">Click Me</a>I’m not seeing that class on the link that you put in your post above, but maybe it got stripped out? If there are no JS errors in the console and you think you have the correct link HTML, can you post it again here and put it inside backticks so I’ll be able to see the raw HTML you’re using?
Hopefully this information helps you. The plugin is definitely working great for me on many sites, so I’m hopeful we can get it working for you.
-Braad
Forum: Reviews
In reply to: [Vertical Center] GreatThank you for the review! 🙂
Forum: Plugins
In reply to: [Equal Height Columns] Woocommerce?Hello Diane,
I’ve taken a look at your page but I can’t tell which elements you are trying to equalize the heights of. Which elements are you trying to target?
One way you can test whether you have the right selector is to open your browser console (right click, inspect element, console tab in Chrome) and type this:
jQuery( '.your-custom-selector' )Of course replace ‘your-custom-selector’ with your selector. This will return the elements on the page that match the selector, allowing you to test your selector and try different selectors until you find the right one. Once it returns only the elements you want you’ll know that the selector should work.
I hope this information helps. If you tell us the specific elements you want to equalize the heights of we can recommend a selector for you to try.
Forum: Plugins
In reply to: [Vertical Center] More Vertical Center for DummiesHello @scottlharrison,
I’ve taken a look at the page you linked to (thanks for the link!) and there are a few things you’ll need to do to get it working.
The basic concept behind the plugin is that you have a child element inside a parent element, and you want to vertically center the child element relative to the parent. The parent element must therefore be taller than the child element, otherwise the plugin can’t calculate a distance that would represent being in the vertical center of the parent.
In your case, the primary structure of your page content is 2 even columns above 780px, and a single column at 780px and below.
We need a parent element that has a specific height, and we need a child element immediately inside that parent. In your case, the parent element that has the height we need is the main wrapper div for the 2 columns, which has the classes
siteorigin-panels-stretch panel-row-style. This div is just inside another wrapper with the classpanel-grid, and it contains two child elements for the 2 columns,<div class="panel-grid-cell" id="pgc-90-0-0">and<div class="panel-grid-cell" id="pgc-90-0-1">.The first of these child divs is the one for the left side column where the image you want to center is. If that div had the full height of its parent then we could get more specific with our selector and only target the image, but with the page in its current state we need to target the whole left side column div, because that is the only child element that is able to be centered relative to its parent. We build a selector to target this div using the id attribute
pgc-90-0-0.You can write a selector that targets an id attribute using a # character, and you can target a class attribute using a . character, like
#pgc-90-0-0and.panel-grid-cell. In your case you want to use the id in your selector, because the class on the divpanel-grid-cellis shared with other elements and all elements that match the selector will get targeted, and you only want to target that one specific div.If you switch to using the selector
#pgc-90-0-0, it should work. You can trigger the vertical centering manually by pastingjQuery( '#pgc-90-0-0' ).doVerticalCenter();into your browser console, and you’ll see it take effect, but because you currently have a selector that is targeting the image itself, there is a conflict. Once you remove the old selector and only use#pgc-90-0-0it should work just fine.I hope this information helps you. Please let me know if you have any more questions, and thank you for using Vertical Center! 🙂
Forum: Plugins
In reply to: [Equal Height Columns] Selectors?Hello powerfulyou,
I’ve taken a look at your site, and I think the reason it isn’t working is because you’ve set a breakpoint of 2000 pixels. The breakpoint is the screen width under which you don’t want to the plugin to equalize the heights, so in your case this is saying “Don’t equalize the heights if the screen is not at least 2000 pixels wide”.
You can confirm that it is indeed working if you enter this into the console:
jQuery( '.content, .sidebar-primary' ).initEqualHeights();That calls the script directly, without setting a breakpoint, and it works, but right now you don’t have the white background color on
.sidebar-primary, so it’s difficult to notice that it works. I’d recommending putting the white background on.sidebar-primaryso that you get the look of Equal Height Columns.I usually use a breakpoint of 768, which is an iPad in portrait orientation, so that I get the equal height columns on iPads and bigger but not on iPhones, but it all depends on your theme’s mobile breakpoint.
Please try a lower breakpoint and let me know if it works for you, and thank you for using Equal Height Columns.
Forum: Plugins
In reply to: [Equal Height Columns] Selector not recognizedHello @mark7694,
This plugin takes a selector that matches multiple elements, finds the tallest among them, and then sets the height of all the matching elements to the height of the tallest. The selector you specify must match multiple elements in order for there to be a proper collection to equalize the heights across.
I can tell by the class name .wpb-column that you might be using Visual Composer? If so, the markup structure used by Visual Composer rows/columns is very nested and it can be difficult to put the right class on the right element.
A quick trick is (in Chrome) to right click, inspect element (opens the Chrome devtools), click to the console tab, and type:
jQuery( '.your-custom-selector' )Replace
.your-custom-selectorwith whatever selector you want to use. This little bit of code will return all elements that match the selector, allowing you to confirm which elements are matching.You should only see elements match that you want to all have equal heights. If more elements than the ones you want are matching, you need to use a more specific selector. You can scope your selector by, for example, adding a class to a Visual Composer row, then adding a class to the Visual Composer columns inside that row, resulting in a selector like
.row-class .column-class. You’ll know you’ve got the right selector if when you typejQuery( '.your-custom-selector' )into the console, you see the right elements matching.If the page you’re working on is live somewhere and you can share the URL, I can take a look and recommend the right selector to use. This plugin itself is very simple and any CSS/jQuery selector will work, so it all comes down to using the right selector to match only the elements you want the plugin to affect.
Forum: Plugins
In reply to: [Equal Height Columns] installed plugin, now how to use it?Hello @mandrill2000,
We haven’t heard from you for a while, so I’m going to mark this issue as resolved, but feel free to reopen if there is anything more we can help you with. 🙂
Forum: Plugins
In reply to: [Equal Height Columns] Use with expanding contentGlad to hear you were able to get it working. Your code looks good but I would remove the call to setTimeout, as currently you are calling setTimeout but not passing a time value as the second param, which is in effect setting up a timer and then immediately executing the function on the timer.
I included the setTimeout call in my example just because I knew that the collapsing/expanding action happened over a duration and I wanted to make sure the height recalculation happened after the collapsing/expanding was done, but since it looks like you’ve found direct events to listen for, I think you no longer need the setTimeout.
So, continuing on with the code you provided, it can probably be simplified to:
var equalToggle = function() { jQuery( '#sidebar_layout .fixed-sidebar, #sidebar_layout #content' ).equalizeTheHeights(); }; $('.tb-toggle').on('shown.bs.collapse', equalToggle); $('.tb-toggle').on('hidden.bs.collapse', equalToggle);Thanks for using Equal Height Columns! 🙂
Forum: Plugins
In reply to: [Equal Height Columns] Use with expanding contentHello MaryMak,
Equal Height Columns is set to recalculate the heights whenever the window is resized, but it also includes a direct JS method
$.equalizeTheHeights()that you can use to force a recalculation of the heights whenever something else like an accordion expanding happens.The key is to hook into a JS event that fires right when the heights are ready to be measured. I’ve looked at your page but I’m not sure what method you’re using to expand the accordions. Hopefully there is a suitable event that is fired or your controlling the JS yourself so you can trigger the recalculation directly.
Here is some quick example JS that demonstrates the concept:
jQuery( '.tb-toggle' ).on( 'click', function() { setTimeout( function() { jQuery( '#sidebar_layout .fixed-sidebar,#sidebar_layout #content' ).equalizeTheHeights(); console.log( 'equal heights has retriggered' ); }, 1000 ); });This method isn’t ideal, because all it does is say whenever one of the toggles is clicked, wait 1 second and then recalculate the heights. It would be more ideal to fire it immediately after the accordion has been expanded, either by hooking into a JS event fired at that point, or calling the
$.equalizeTheHeights()method directly at that point, or if you’re using CSS transitions, set the timer value above to be just after the CSS transition will be finished.I hope this helps. If you paste the code above into the console, you’ll see the recalculation happening.
Forum: Plugins
In reply to: [Vertical Center] Vertical Center For Dummies@davidgaz, I haven’t heard from you for a while so I’m going to mark this ticket as resolved, but feel free to reopen if I you still have any questions.
Forum: Plugins
In reply to: [Dashboard Notes] How to use urlsHello defmc,
The URLs should be formatted as everything after the /wp-admin/ for one of your admin URLs, so for example to show the dashboard note on the Add New Post screen, which has a URL like:
http://example.com/wp-admin/post-new.phpYou would use:
post-new.phpOn a screen like the post edit screen which has a URL that is dynamic like:
http://example.com/wp-admin/post.php?post=353&action=editYou could target all post edit screens by doing:
post.php*The * will match anything that comes after it in the URL.
If you provide the URL to the admin page that you want the note to show on, I can respond with what you should enter into Dashboard Notes. 🙂
Thanks for using!
Hello @rdillard,
I’ve just tested the latest version of the plugin with the Quest theme, and it’s working great for me. The error message you’re getting is common when there is a plugin conflict, and I think that is what is likely happening in this case.
Can you reply with a list of the active plugins on your site? That will help us narrow down the conflict and hopefully get it resolved.
-Braad
Forum: Plugins
In reply to: [Equal Height Columns] installed plugin, now how to use it?Thanks for sharing the URL. I can see that the plugin is working and the selectors that you are using are very close to correct. Right now your selectors are:
.su-row .su-column-size-2-3 .su-row .su-column-size-1-3But you actually want to use:
.su-row .su-columnThe idea is that a single selector should match multiple elements and then equalize the heights of all the matching elements. With your selectors you were only matching one element with each selector, so the plugin didn’t have a second element to compare it to.
There are, however, some other issues on your page that you’ll need to fix before you get the result that I think you want. Using the selector I mentioned above will equalize the height of the columns, but in your case your div that has the background color is not the column div, it’s one of the child divs. You could do
height: 100%;on .su-column-inner and then addbox-sizing: border-box;to your div with the background color. That gets you most of the way there. There is also a JavaScript error showing in the consoleUncaught ReferenceError: ajaxurl is not definedthat may prevent the JavaScript that Equal Height Columns needs from running. It looks like that is coming from a plugin called WP RSS Aggregator.Best of luck.
-Braad
Forum: Plugins
In reply to: [Equal Height Columns] installed plugin, now how to use it?Hello @mandrill2000
All you need to do is enter the right selector on the settings page. The selector should match either an id or class attribute on the HTML elements that you want to equalize the heights of.
In your example, the shortcodes [su_row] and [su_column] will expand into HTML elements on the front end of the site, and hopefully they have a unique class or id that you can use. You’ll want to check out the HTML on the front end of your site by either right clicking on the screen and selecting “Inspect Element” or “View Page Source” and then find the right HTML for the columns. It will likely look something like this:
<div class="row-1"> <div class="col-1 column">Column Content</div> <div class="col-2 column">Column Content</div> <div class="col-3 column">Column Content</div> </div>The selector you enter on the settings page should match the elements that you want to equalize the heights of, so for this HTML the selector would be “.row-1 .column”, which says “Find the element with the class ‘.row-1’, then look inside it and match child elements with the class ‘.column'”
If you can share a direct link to the page on the front end of your site where you’re trying to get it working, or if you can share the HTML that your shortcodes turn into, I can recommend what specific selector you’ll want to use to get it working.
I hope this information helps. Thanks for using Equal Height Columns!
Forum: Plugins
In reply to: [Vertical Center] Vertical Center For DummiesHello @davidgaz,
Thank you for using Vertical Center, and for posting in the support forums. I’m happy to help you get it working. 🙂
Let’s say you’ve got some HTML like this:
<div class="vc-target-wrapper"> <div class="vc-target">This inner div is what we want to vertically center.</div> </div>The selector that you’d enter on the settings page would be
.vc-target. If the inner div hadid="vc-target"rather thanclass="vc-target"then the selector would be#vc-target. You can use any arbitrary selector here, it doesn’t have to bevc-target. You could doid="target"and then the selector would be#targetbut the point is that the selector you want to use should match the child element that you want to vertically center relative to its parent.So in the above example, if we entered
.vc-targetas a selector on the settings page the plugin would do this: “Look for the element that matches the selector.vc-target, calculate its height, then go one level up to find its parent element, then calculate the parent’s height, then subtract the child height from the parent height and divide by two, then apply any offset, then apply the result as margin-top to the child element.”The essential pieces are the right selector to match the child element you want to vertically center and the child element being wrapped in an immediate parent element that it should be centered relative to. This also means that the parent element should always be taller than the child element, because otherwise the child element has nothing to center itself relative to, so in the example above we would need to have a height set on
.vc-target-wrapperthat was greater than the height of.vc-targetin order to see any vertical centering.I hope this information helps. If you send me a link to the page on your site where you’re trying to get it working and explain which element you want to be vertically centered, I can take a look and respond with what selector you should be using.
-Braad