Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • use the pluggin Ultimate Member, it allows you to have login, register and account page, among other things.

    @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

    Thread Starter danielm04

    (@danielm04)

    @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.

    Thread Starter danielm04

    (@danielm04)

    In 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
    Thread Starter danielm04

    (@danielm04)

    Yes, 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

    Thread Starter danielm04

    (@danielm04)

    it did work, thanks

    Thread Starter danielm04

    (@danielm04)

    Thanks, I’m going to try that, and the html and body is just because of the previous code.

    Thread Starter danielm04

    (@danielm04)

    @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 header

    you 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>
Viewing 9 replies - 1 through 9 (of 9 total)