php - Wordpress newbie seeking a name and guidance -
php - Wordpress newbie seeking a name and guidance -
i've began larn css , php, in effort create wordpress site. i've pretty much been 24/7 2 weeks trying figure out. today while browsing ideas stumbled on own thought... , after googling felt eternity thought i'd give site try... (it's confusing google when have no clue called.) there "easy" way hide of site's content until button pressed?
for instance, http://gyazo.com/6645edf04777af0f375b662db452d33f ... let's image entire site, until press arrow facing down. "reveals" rest of site, in fancy way.
thanks in advance.
yes, there is. can jquery javascript library.
note: if you're not familiar jquery, you'll have set within <head>
tag: <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
phone call jquery library googgle. learn more jquery here
this <script>
should go header or can place on footer:
<script> $(".showmsg").click(function () { $('#website').fadein(); }); </script>
your html
<button class="showmsg">click me</button> <div id="website"> <p> ... content here ... </p> </div>
and need set display:none;
#website
won't start visible
#website { display:none; }
here's online example
php css wordpress
Comments
Post a Comment