How do I remove the theme effect from my page.

Discussion in 'WordPress' started by Sayedtaqui, Dec 14, 2012.

  1. #1
    Hi,
    I m designing a page ourshiaislam.com/nauhay and I have written the whole code for it. which works fine, when I wrote in dreamweaver. However the problem is that when I enter that code in wordpress, It adds some color effect(purple) and underline to the texts and which you click it becomes red. I m using Swift premium version and I have removed the
    a{color:#005fa1;text-decoration:none} and a:hover{color:#F00} from the stylsheet.css(as seen from Inspect Element) and also wrote more specific codes(so that no class matches with the themes code) however the effect is not going away. And also When you click on DOWNLOAD NOW button, it takes you back to the home page though I have embeded a different link there(which works when I run it speratly in my browser)
    I have also added a:hover, a:active, a:visited {color:none;} to the css but nothing is happening.

    Thanks in advance.
    I m pasting my code here for you to have a look(it will work fine if you run it sepratly)








    <!DOCTYPE html>
    <html>
    <head>
    <style>


    .toptext9{margin:-67px;
    text-align:center;
    color:#fff;
    text-shadow: 1px 1px #000;
    }


    .box2{border:0px solid #333;
    box-shadow: 9px 3px 25px 1px #333;
    background:#272727;
    border:1px solid 000;
    margin-top: -20px;
    }






    .box25:hover{background-color:#000;
    }


    .box25{border:0px solid #333;
    box-shadow: 9px 3px 25px 1px #333;
    background:#272727;
    border:1px solid #000;
    margin-top: -48px;


    }


    .buttons{ margin-left: 272px;
    margin-top: -95px;
    padding-top: 7px;
    padding-bottom: 60px;
    }


    .txt{
    margin-left:10px;
    margin-bottom:34px;
    padding-top:10px;
    }


    .box25 .txt p{color:#fff;
    font-weight:bold;
    text-shadow:1px 1px #000;
    text-decoration:none;
    }




    .txt2{margin-top: -27px;
    margin-left: 11px;
    color:#999;
    }


    .box25 .txt2 p{color:#999;
    text-decoration:none;
    }


    .txt3{margin-left:11px;
    margin-top:-18px;
    color:#999;
    }


    .box25 .txt3 p{
    color:#999;
    text-decoration:none;
    }


    a:hover{color:none;
    }


    .classname {
    -moz-box-shadow:inset 0px 1px 0px 0px #857e85;
    -webkit-box-shadow:inset 0px 1px 0px 0px #857e85;
    box-shadow:inset 0px 1px 0px 0px #857e85;
    background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #90d5f5), color-stop(1, #0e6fed) );
    background:-moz-linear-gradient( center top, #90d5f5 5%, #0e6fed 100% );
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#90d5f5', endColorstr='#0e6fed');
    background-color:#90d5f5;
    -moz-border-radius:6px;
    -webkit-border-radius:6px;
    border-radius:6px;
    border:1px solid #dcdcdc;
    display:inline-block;
    color:#f0f0f0;
    font-family:arial;
    font-size:15px;
    font-weight:bold;
    padding:6px 24px;
    text-decoration:none;
    text-shadow:1px 1px 0px #757575;
    }.classname:hover {
    background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #0e6fed), color-stop(1, #90d5f5) );
    background:-moz-linear-gradient( center top, #0e6fed 5%, #90d5f5 100% );
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#0e6fed', endColorstr='#90d5f5');
    background-color:#0e6fed;
    }.classname:active {
    position:relative;
    top:1px;
    }




    </style>


    <body>
    <div class="box2" style="height: 100px;"><img style="margin-top:-10px;" src="http://www.ourshiaislam.com/wp-content/uploads/2012/11/nadeem-sarwar1-150x150.jpg" alt="" width="100" height="100" />
    <h3 class="toptext9" style="margin-top: -142px;">Nadeem Sarwar Nauhay</h3>
    <p class="toptext9" style="margin-top: 70px; margin-left: -82px; color: #ccc;">12 Tracks</p>


    </div>
    &nbsp;
    <div class="box25">
    <p class="txt">Ahista Chacha</p>
    <p class="txt2">Size : 5.21 MB Format MP3</p>
    <p class="txt3">Length : 5:40 Year:2013</p>


    <form class="buttons"><input class="classname" onclick="window.open('http://shiadownload.com/play.php?play=6603&r=2', 'Title','resizable=yes,width=500,height=400, top=10, left=10')" type="button" value="Play" />


    <input class="classname" onclick="window.location.href='http://shiadownload.com/save.php?s=1&save=6603'" type="button" value="Download Now" />


    <input class="classname" onclick="window.open('http://www.ourshiaislam.com/chale-aawo-ay-zawaaro/', 'Title','resizable=yes,width=500,height=800, top=10, left=10')" type="button" value="Lyrics" /></form></div>
    &nbsp;




    <div class="box25">
    <p class="txt">Ae Alam Afrashteh</p>
    <p class="txt2">Size : 5.44 MB Format MP3</p>
    <p class="txt3">Length : 5:54 Year:2013</p>


    <form class="buttons"><input class="classname" onclick="window.open('http://shiadownload.com/play.php?play=6599&r=2', 'Title','resizable=yes,width=500,height=400, top=10, left=10')" type="button" value="Play" />


    <input class="classname" onclick="window.location.href='http://shiadownload.com/save.php?s=1&save=6599'" type="button" value="Download Now" />


    <input class="classname" onclick="window.open('http://www.ourshiaislam.com/ay-alam-afraashte/', 'Title','resizable=yes,width=500,height=800, top=10, left=10')" type="button" value="Lyrics" /></form></div>
    &nbsp;
    <div class="box25">
    <p class="txt">Aey Madina Ghazab</p>
    <p class="txt2">Size : 5.04 MB Format MP3</p>
    <p class="txt3">Length : 5:29 Year:2013</p>


    <form class="buttons"><input class="classname" onclick="window.open('http://shiadownload.com/play.php?play=6610&r=2', 'Title','resizable=yes,width=500,height=400, top=10, left=10')" type="button" value="Play" /><input class="classname" onclick="window.location.href='http://shiadownload.com/save.php?s=1&save=6610'" type="button" value="Download Now" /><input class="classname" onclick="window.open('#', 'Title','resizable=yes,width=500,height=800, top=10, left=10')" type="button" value="Lyrics" /></form></div>
    &nbsp;
    <div class="box25">
    <p class="txt">Ana Ali Bin</p>
    <p class="txt2">Size : 5.23 MB Format MP3</p>
    <p class="txt3">Length : 5:41 Year:2013</p>


    <form class="buttons"><input class="classname" onclick="window.open('http://shiadownload.com/play.php?play=6605&r=2', 'Title','resizable=yes,width=500,height=400, top=10, left=10')" type="button" value="Play" /><input class="classname" onclick="window.location.href='http://shiadownload.com/save.php?s=1&save=6605'" type="button" value="Download Now" /><input class="classname" onclick="window.open('#', 'Title','resizable=yes,width=500,height=800, top=10, left=10')" type="button" value="Lyrics" /></form></div>
    &nbsp;
    <div class="box25">
    <p class="txt">Baraye Dil E Dukhtar</p>
    <p class="txt2">Size : 5.53 MB Format MP3</p>
    <p class="txt3">Length : 6:00 Year:2013</p>


    <form class="buttons"><input class="classname" onclick="window.open('http://shiadownload.com/play.php?play=6602&r=2', 'Title','resizable=yes,width=500,height=400, top=10, left=10')" type="button" value="Play" /><input class="classname" onclick="window.location.href='http://shiadownload.com/save.php?s=1&save=6602'" type="button" value="Download Now" /><input class="classname" onclick="window.open('#', 'Title','resizable=yes,width=500,height=800, top=10, left=10')" type="button" value="Lyrics" /></form></div>
    &nbsp;
    <div class="box25">
    <p class="txt">Chaley Aao Aey Zawaro</p>
    <p class="txt2">Size : 9.42 MB Format MP3</p>
    <p class="txt3">Length : 10:15 Year:2013</p>


    <form class="buttons"><input class="classname" onclick="window.open('http://shiadownload.com/play.php?play=6600&r=2', 'Title','resizable=yes,width=500,height=400, top=10, left=10')" type="button" value="Play" /><input class="classname" onclick="window.location.href='http://shiadownload.com/save.php?s=1&save=6600'" type="button" value="Download Now" /><input class="classname" onclick="window.open('#', 'Title','resizable=yes,width=500,height=800, top=10, left=10')" type="button" value="Lyrics" /></form></div>
    &nbsp;
    <div class="box25">
    <p class="txt">Darya Behta Raha</p>
    <p class="txt2">Size : 5.57 MB Format MP3</p>
    <p class="txt3">Length : 6:03 Year:2013</p>


    <form class="buttons"><input class="classname" onclick="window.open('http://shiadownload.com/play.php?play=6607&r=2', 'Title','resizable=yes,width=500,height=400, top=10, left=10')" type="button" value="Play" /><input class="classname" onclick="window.location.href='http://shiadownload.com/save.php?s=1&save=6607'" type="button" value="Download Now" /><input class="classname" onclick="window.open('#', 'Title','resizable=yes,width=500,height=800, top=10, left=10')" type="button" value="Lyrics" /></form></div>
    &nbsp;
    <div class="box25">
    <p class="txt">Main Hussain</p>
    <p class="txt2">Size : 6.1 MB Format MP3</p>
    <p class="txt3">Length : 6:38 Year:2013</p>


    <form class="buttons"><input class="classname" onclick="window.open('http://shiadownload.com/play.php?play=6601&r=2', 'Title','resizable=yes,width=500,height=400, top=10, left=10')" type="button" value="Play" /><input class="classname" onclick="window.location.href='http://shiadownload.com/save.php?s=1&save=6601'" type="button" value="Download Now" /><input class="classname" onclick="window.open('#', 'Title','resizable=yes,width=500,height=800, top=10, left=10')" type="button" value="Lyrics" /></form></div>
    &nbsp;
    <div class="box25">
    <p class="txt">Mohnjy Nuakri</p>
    <p class="txt2">Size : 4.31 MB Format MP3</p>
    <p class="txt3">Length : 4:41 Year:2013</p>


    <form class="buttons"><input class="classname" onclick="window.open('http://shiadownload.com/play.php?play=6606&r=2', 'Title','resizable=yes,width=500,height=400, top=10, left=10')" type="button" value="Play" /><input class="classname" onclick="window.location.href='http://shiadownload.com/save.php?s=1&save=6606'" type="button" value="Download Now" /><input class="classname" onclick="window.open('#', 'Title','resizable=yes,width=500,height=800, top=10, left=10')" type="button" value="Lyrics" /></form></div>
    &nbsp;
    <div class="box25">
    <p class="txt">Muhammad Hamarey</p>
    <p class="txt2">Size : 5.08 MB Format MP3</p>
    <p class="txt3">Length : 5:31 Year:2013</p>


    <form class="buttons"><input class="classname" onclick="window.open('http://shiadownload.com/play.php?play=6608&r=2', 'Title','resizable=yes,width=500,height=400, top=10, left=10')" type="button" value="Play" /><input class="classname" onclick="window.location.href='http://shiadownload.com/save.php?s=1&save=6608'" type="button" value="Download Now" /><input class="classname" onclick="window.open('#', 'Title','resizable=yes,width=500,height=800, top=10, left=10')" type="button" value="Lyrics" /></form></div>
    &nbsp;
    <div class="box25">
    <p class="txt">Sham E Ghareeban Mein</p>
    <p class="txt2">Size : 4.94 MB Format MP3</p>
    <p class="txt3">Length : 5:22 Year:2013</p>


    <form class="buttons"><input class="classname" onclick="window.open('http://shiadownload.com/play.php?play=6609&r=2', 'Title','resizable=yes,width=500,height=400, top=10, left=10')" type="button" value="Play" /><input class="classname" onclick="window.location.href='http://shiadownload.com/save.php?s=1&save=6609'" type="button" value="Download Now" /><input class="classname" onclick="window.open('#', 'Title','resizable=yes,width=500,height=800, top=10, left=10')" type="button" value="Lyrics" /></form></div>
    &nbsp;
    <div class="box25">
    <p class="txt">Ya Ali</p>
    <p class="txt2">Size : 6.63 MB Format MP3</p>
    <p class="txt3">Length : 7:12 Year:2013</p>


    <form class="buttons"><input class="classname" onclick="window.open('http://shiadownload.com/play.php?play=6604&r=2', 'Title','resizable=yes,width=500,height=400, top=10, left=10')" type="button" value="Play" /><input class="classname" onclick="window.location.href='http://shiadownload.com/save.php?s=1&save=6604'" type="button" value="Download Now" /><input class="classname" onclick="window.open('#', 'Title','resizable=yes,width=500,height=800, top=10, left=10')" type="button" value="Lyrics" /></form></div>


    </body>
    </html>





     
    Sayedtaqui, Dec 14, 2012 IP
  2. tushonline

    tushonline Member

    Messages:
    40
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    30
    #2
    You will need to add css style with ref to its classes. However you can still use something like this

    a:hover, a:active, a:visited {color:inherit !important;}

    or

    a, a:active, a:visited {color:#fff !important;} /*Change you color values*/
    a:hover {color:#F90 !important;} /*change you color values*/

    Overall - it will need lot of work to optimize the code 7 css styes. Play around a bit and you should be fine :)
     
    tushonline, Dec 14, 2012 IP
  3. Sayedtaqui

    Sayedtaqui Greenhorn

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    6
    #3
    Hey thanks for this quick reply, I added your code to my CSS and it removed the color(half problem solved) however the underline from the text is not going away and if you click anywhere on the box , it will take you to the home page (though I havn't added it yet).
    I m trying to figure out here but I would appretiate if you could just have a look at my page probably you might think of an idea ourshiaislam.com/nauhay/
     
    Sayedtaqui, Dec 14, 2012 IP
  4. tushonline

    tushonline Member

    Messages:
    40
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    30
    #4
    to remove underline add something like this

    a:hover, a:active, a:visited {color:inherit !important; text-decoration:none !important}
     
    tushonline, Dec 14, 2012 IP
    Sayedtaqui likes this.
  5. Sayedtaqui

    Sayedtaqui Greenhorn

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    6
    #5
    Hey problem solved, had not thought of applying !important ,
    Thanks for your help.
    Now there is only one thing left. I have checked the whole code but dont know why is it happening that when you click anywhere on the box, it takes you to the home page :(
     
    Sayedtaqui, Dec 14, 2012 IP
  6. tushonline

    tushonline Member

    Messages:
    40
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    30
    #6
    You have to fine a piece of code as shown below

    and also remove just the </a> that is related to your homepage link.... which should be in sidebar.php as seen in the code.
     
    tushonline, Dec 14, 2012 IP
  7. Sayedtaqui

    Sayedtaqui Greenhorn

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    6
    #7
    Hey thank you very much I found where the problem is. actually the whole code is under <a></a> and that's why its behaving like a link and going to the home page\
     
    Sayedtaqui, Dec 14, 2012 IP
  8. tushonline

    tushonline Member

    Messages:
    40
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    30
    #8
    very true... glad you found it & it helped.
    best wishes :)
     
    tushonline, Dec 14, 2012 IP