Tagged: x
-
AuthorPosts
-
November 21, 2016 at 10:42 am #1265642
bteague28ParticipantThis thread was closed, so I had to open a new one.
https://community.theme.co/forums/topic/video-lock-plugin-close-button-not-working/
I added this code, but the close button is not visible.
.x-video-lock-close {
width: 28px;
height: 28px;
font-size: 28px;
color: rgba(255,255,255,0.8);
}I am running the following versions:
Theme X: 4.0.3
Video Lock: 1.0.0
Shortcodes: 3.0.5
Revolution Slider: 4.6.5
WordPress: 4.0.13Cornerstone is not installed, but everything else is working just fine.
How can we get this working?
Thanks!
November 21, 2016 at 11:06 am #1265669
RupokMemberHi there,
It seems you are using very older version of X with X Shortcodes. So the extensions might not work as expected. X Shortcodes has been replaced by Cornerstone long ago and you should keep everything up to date.
You can find the latest version numbers here: (http://theme.co/changelog/) Then you can compare them to what’s installed on your site.
If you find anything to be out of date, you can review our update guide.
November 21, 2016 at 11:51 am #1265736
bteague28ParticipantCan you offer any other suggestions? Do a major upgrade like this, just to fix one small issue, is not smart. I just updated the Video Lock plugin to Version 1.1.1. It’s still not working.
Is there a way to manually add the button using code?
How is it supposed to work? Can you post a screen shot showing what it looks like?
Thanks!
November 21, 2016 at 12:21 pm #1265782
bteague28ParticipantOK, the close button is being rendered on the page and it works. It’s located in the top left-hand corner of the page, but you just can’t see it. I was able to find it by inspecting the page.
I was able to change the background to blue (see attached image). I can now see where the button is supposed to be.
.x-video-lock-close {
width: 50px;
height: 50px;
font-size: 48px;
background-color: blue;
}It looks like the problem is here. The icon is set to 0 by 0 or it is missing.
i.x-icon.x-icon-close {
}Can you give me some CSS code that will expose the button so people can see it?
Thanks!
November 21, 2016 at 12:48 pm #1265821
Nabeel AModeratorHi again,
Can you please provide the URL of your site so we can take a look? For a permanent solution you should update your X theme to the latest version and install Cornerstone plugin. X – Shortcodes is replaced with Cornerstone which inherits all the functionality of X Shortcodes which means X Shortcodes can be safely deactivated and deleted. You can create a test environment and run the update or you can take a backup first and then update everything.
Installing Cornerstone is must to make sure everything works as expected.
Hope this helps!
November 21, 2016 at 1:27 pm #1265852
bteague28ParticipantThis reply has been marked as private.November 21, 2016 at 1:36 pm #1265862
bteague28ParticipantBy the way, you have the same problem on all your demos.
If I pull my laptop screen forward, I can see the tiny x in the upper left-hand corner of the screen. If I right click in that area, I can inspect the elements.
You’re welcome! How do we fix this?
November 21, 2016 at 3:36 pm #1265978
Nabeel AModeratorHi there,
Thank you for pointing this out. The close button position is intentional we just need to change the color of the button so it is more prominent. I’ve forwarded this to our development team and they’ll take care of this in future release. For now you can fix this by adding the following code in your Customizer via Appearance > Customize > Custom > Edit Global CSS:
.x-video-lock-close { top: 10px !important; left: auto !important; color: #fff !important; right: 10px !important; background: transparent !important; }Don’t forget to clear your browser’s cache after adding the code. Let us know how this goes!
November 21, 2016 at 3:49 pm #1265989
bteague28ParticipantThanks for that! How do I make the X bigger?
November 21, 2016 at 3:59 pm #1265998
Nabeel AModeratorHi again,
To make the X bigger, replace the previous code with this:
.x-video-lock-close { top: 10px !important; left: auto !important; color: #fff !important; right: 30px !important; background: transparent !important; font-size: 40px !important }Adjust the font-size in the above code to make the icon bigger or smaller.
Cheers!
November 21, 2016 at 4:12 pm #1266010
bteague28ParticipantThat worked! Thanks ever so much.
November 21, 2016 at 9:32 pm #1266350
Prasant RaiModeratorYou are most welcome. 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1265642 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
