LebCit
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Sydney] Highlighting menu items on scroll@ghassanalqazzaz,
If the following does not work, than you have made a nasty CSS change(s) to your theme and I can’t help you. I suspect that you messed around your theme with jQuery… Try this :#mainnav ul .current-menu-item { background-color: red; /* you can replace red by any color or any HEX value like #fff or #d65050 */ } #mainnav ul .current-menu-item a { color: yellow; /* you can replace yellow by any color or any HEX value like #fff or #d65050 */ }OR
#mainnav ul li.current-menu-item { background-color: red; /* you can replace red by any color or any HEX value like #fff or #d65050 */ } #mainnav ul li.current-menu-item a { color: yellow; /* you can replace yellow by any color or any HEX value like #fff or #d65050 */ }Forum: Themes and Templates
In reply to: Creating function.php file for child themeHello @darkstarx
It goes in the Child Theme Stylesheet
No the versions are not related.
I recommend you a pretty good plugin to create a child theme.
SYA 🙂
Forum: Themes and Templates
In reply to: [Appointment] color of the box in contact formForum: Themes and Templates
In reply to: [Sydney] Highlighting menu items on scroll@ghassanalqazzaz if
.current-menu-itemis not working, this means that you should look at the right side of the inspect element tool, under CSS rules and grab the specific id/class that is manipulating your current menu item !Forum: Themes and Templates
In reply to: [Sydney] Highlighting menu items on scroll@ghassanalqazzaz, I can’t help you further unless you provide me a link or the class of a current menu item.
Forum: Themes and Templates
In reply to: [Customizr] Adding search form in header@tobi1kanoby you’ve been here for 7 years now, this is the first time in 4 years that I won’t be nice on wordpress.org !
You have clients and don’t know how to add a simple search input ?!
Go figure it out all by yourself on the codex !
- This reply was modified 9 years, 5 months ago by LebCit.
Forum: Themes and Templates
In reply to: [Sensible WP] Submenu: nobody can click!Forum: Themes and Templates
In reply to: [Customizr] Grey line color customizationForum: Themes and Templates
In reply to: [Poseidon] Remove featured image from post AND pageForum: Themes and Templates
In reply to: [Smartline Lite] Hide Slider on mobileForum: Themes and Templates
In reply to: [ColorMag] Remove post categories front pageHello @ebfigueroa
First you should use a child theme or a custom CSS plugin for your changes or you will loose them on the next update of your theme.
To remove the tags use this in the style.css of your child theme or in your custom CSS plugin.blog .entry-thumbnail-category { display: none; }This will remove the categories on the thumbnails of the blog since it’s your homepage
.blog .entry-thumbnail-category { display: none; }This will remove the categories on the thumbnails anywhere in the site
SYA 🙂
Forum: Themes and Templates
In reply to: [Sydney] Highlighting menu items on scroll@ghassanalqazzaz, I’ve tested on local the following on Sydney Theme
.current-menu-item { background-color: red; /* you can replace red by any color or any HEX value like #fff or #d65050 */ } #mainnav ul .current-menu-item a { color: yellow; /* you can replace yellow by any color or any HEX value like #fff or #d65050 */ }It’s working perfectly !
Did you make some changes to the theme ?!SYA 🙂
Forum: Themes and Templates
In reply to: Keep button pressedHello @pdegelder
Since the code didn’t work, I’ve decided to install the Vortex Theme and make all the necessary changes to the code. It’s my fault…
Did you notice that this theme hasn’t been updated in over 2 years ?!1- mybuttonclick.js A NASTY ERROR ABOVE WHILE TARGETING THE BUTTON AND IT’S ID 🙁
(function($) { $('#mybutton').on('click', function() { /* this line changed ! */ $(this).toggleClass('clicked'); }); })(jQuery);2- functions.php NO CHANGES !
function mybutton_script() { wp_enqueue_script( 'mybuttonscript', get_template_directory_uri() . '/js/mybuttonclick.js', array( 'jquery' ), '', true ); } add_action( 'wp_enqueue_scripts', 'mybutton_script' );3- style.css
.clicked { background-color:#357EBD; color:#fff; } .clicked:hover { /* ADDED TO REMOVE THE DEFAULT HOVER EFFECT AND REPLACED IT WITH THE DESIRED ONE */ background-color:#357EBD; color:#fff; }DON’T TELL ME IT’S NOT WORKING 🙂 I’VE TRIED IT MYSELF 🙂
Just kidding, don’t hesitate, tell me if I can help your more.SYA 🙂
Forum: Themes and Templates
In reply to: [Sydney] Highlighting menu items on scrollHello @ghassanalqazzaz,
To target a current menu item in WP you need to target this class
.current-menu-itemSo if you want to change the background color of the current menu item
.current-menu-item { background-color: red; /* you can replace red by any color or any HEX value like #fff or #d65050 */ }If you want to change the color of the link’s text
.current-menu-item a { background-color: red; /* you can replace red by any color or any HEX value like #fff or #d65050 */ }SYA 🙂
Forum: Themes and Templates
In reply to: Keep button pressedHello @pdegelder
If you gave me a link from the beginning it would have been easier.
Now that I see your theme config, it’s easier for me to help you get it done.1- First your button is
<button class="mybutton" value="click me">click me</button>
it should have an id of mybutton ! No need here for the value !
<button id="mybutton">click me</button>2- Change the
activeclass byclicked!
$(this).toggleClass('active');BECOMES$(this).toggleClass('clicked');
AND.clicked{ /* HERE WE JUST REPLACE active by clicked */ background:#357EBD; color:#FFF }3- You have to note that the theme you are using have a style for button(s)
So it might affect the behavior a little bit.Tell me if it works or not, I’ll help you get it done, even concerning the theme button(s) style.
I’m LebCit by the way 🙂
SYA = See You Around 🙂