danielm04
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Logout DOESNT WORK – tried everything – 404 erroruse the pluggin Ultimate Member, it allows you to have login, register and account page, among other things.
Forum: Fixing WordPress
In reply to: Logout DOESNT WORK – tried everything – 404 error@exaltedorbshop if the website let me create an account i would tell you what to do for making the logout work, but i needed to be loged in, you forgot to add create account option
Forum: Fixing WordPress
In reply to: Button inside image@corrinarusso https://teststuff.epizy.com/music-shop/ ,filter the genre for rock and you will see the error, thanks for the atention by the way.
Forum: Developing with WordPress
In reply to: Php critical errorIn case someone has a problem like this one, i’ve been testing some things and the solution is this:
<script> function myfunction() { if(1+1=2) { document.getElementById("image2").src= "myimg2.png"; } else { document.getElementById("image2").src= "myimg.png"; } }; </script> <img width="60" src="" />
- This reply was modified 4 years, 5 months ago by bcworkz. Reason: code fixed
Forum: Fixing WordPress
In reply to: Change background on if statementYes, it is for a video, and I want the play button to toggle to pause when it is playing, but that button is defined in my background in those css scripts
Forum: Fixing WordPress
In reply to: css inside if statementit did work, thanks
Forum: Fixing WordPress
In reply to: css inside if statementThanks, I’m going to try that, and the html and body is just because of the previous code.
Forum: Fixing WordPress
In reply to: css inside if statement@joyously thats just part of the code, the code will make many stars generate and each star will popup and show something that someone wrote when you click on it, so the $spp variable is what the person wrote, it is on php because those things go to a document so i had to use the function seek, the condition is that the $spp cant be null, so the star only appears if the line that star is seeking has something wrote, without that condition there will be stars there but the popup will be empty
- This reply was modified 4 years, 5 months ago by danielm04.
Forum: Fixing WordPress
In reply to: Sticky headeryou need to add this css:
.header { padding: 10px 16px; background: #555; color: white; background-color:transparent; } .sticky { position: fixed; top: 0; width: 100%; color:black; -webkit-transition:color 1s ease; -moz-transition:color 1s ease; -o-transition:color 1s ease; transition:color 1s ease; } .sticky + .content { padding-top: 120px; } </style> </head> <body> <div class="header" id="myHeader"> //this is your header so you should shange the <h2>Home</h2> to an <a hrf="... according to what your header has <h2>Home</h2> </div>
And this js:
<script> window.onscroll = function() {myFunction()}; var header = document.getElementById("myHeader"); var sticky = header.offsetTop; function myFunction() { if (window.pageYOffset > sticky) { header.classList.add("sticky"); } else { header.classList.remove("sticky"); } } $(document).ready(function () { $("nav a").mouseenter(function () { if ($(this).data('fading')) //EXIT IF WE ARE FADING return; $('div', this).stop(true, false).animate({ 'height': '45px' }, 100); $('li', this).addClass('white_color'); // THIS IS THE LINE I'M AFTER - I want the color to change smoothly, not instantly $('li', this).stop(true, false).animate({ 'padding-top': '15px' }, 200); }).mouseleave(function () { if ($(this).data('fading')) return; $('li', this).removeClass('white_color'); $('div', this).stop(true, false).animate({ 'height': '0px' }, 300); $('li', this).stop(true, false).animate({ 'padding-top': '65px' }, 500); }); }); </script>