gaintsev
Forum Replies Created
-
Forum: Themes and Templates
In reply to: New User RegistrationThis code checks email that is entered by the user during registration. And if this email is NOT gmail.com it will show an error – ‘ERROR. This is a not Gmail!’. And registration will be rejected.
Forum: Themes and Templates
In reply to: New User RegistrationHi!
You can try use filter ‘registration_errors‘. It should look something like this:
function gmail_registration_errors($errors, $sanitized_user_login, $user_email) { if (!preg_match('/\@(gmail)\.com/', $user_email)) { $errors->add('gmail_error', __('<strong>ERROR</strong>: This is a not Gmail!')); } return $errors; } add_filter('registration_errors', 'gmail_registration_errors', 10, 3);
insert this into your ‘functions.php’ or custom plugin.
Forum: Plugins
In reply to: [TwigPress] Function the_content() and loop in Twig templatesThis work perfect! Many thanks Mike! )
Forum: Plugins
In reply to: [TwigPress] Function the_content() and loop in Twig templatesHi Mike!
Thanks for you answer! I had the time to understand how it works. =)
Now I want to use the ‘twigpress’ on the new site and I have a new question. How can I apply filter ‘twigpress_twig_global_functions’? Now I add new functions directly into the plugin code. And I understand that this is wrong, but I do not understand how to use ‘twigpress_twig_global_functions’ to add new features.Hope to help. Thanks. ??
Forum: Themes and Templates
In reply to: [Ares] Header bar cutGood. Maybe it’s the cache on the server. )
Forum: Themes and Templates
In reply to: [Ares] Header bar cutThis is strange. I still do not see the code.
Forum: Themes and Templates
In reply to: [Ares] Header bar cutAre you sure you add the code? When I look at the source code of your site I do not see this code.
Forum: Themes and Templates
In reply to: [Ares] Header bar cutHi!
You need to increase ‘z-index’ value for header bar. For example add this code to your ‘style.css’:.site-branding { z-index: 101; }
Thus, the slideshow will be located under header bar. See more.
Forum: Themes and Templates
In reply to: Menu Buttons DisappearHi!
Most likely this is due to the small gap between the menu and submenu. Try adding the following code to your style.css file:
.sf-menu li:hover ul { top: 29px; border-top: 1px solid transparent; }
I hope this helps.
Forum: Themes and Templates
In reply to: Text on all posts have changed to left alignHi!
You can try add next code in to your style.css file:
p { text-align: center; }
If titles also need to center, can try:
.title, p { text-align: center; }
Forum: Themes and Templates
In reply to: Huge extra gap on side of websiteHi! Try use this in your CSS file:
#megaMenu label.jrsm-label { left: auto; }
Hi! It seems that your template is not contain header part. Try adding a call header into the top of your template:
<?php get_header(); ?>
Forum: Themes and Templates
In reply to: CSS Code to hide an Image.Hi! You can do this without a plugin. WordPress generates unique CSS classes to the body tag of each page. In your case you need something like this:
.page-id-2330 .entry-thumb { display: none; }
Forum: Themes and Templates
In reply to: Change text color, not working!Hi, you can try this:
body, button, input, select, textarea { color: #000 !important; }