php - Adding jQuery to Wordpress archive search -


for of pages on wordpress site need .wrap {max-width: 100%;} reason affects archive search page differently , makes results span whole page. in short if know add jquery, can code myself having difficulty finding put code.

by archive results page mean, when on wordpress blog , default archive widget dropdown menu clicked, choose month , forwarded onto page month. page displays results, , on page need bring wrap max-width in.

i know it's more efficient php not comfortable php yet prefer put simple jquery .css function in there.

you can without jquery. add in header.php file before wp_head() function.

<?php if(is_archive()){ ?>     <style type="text/css">          .wrap {              max-width: 70% !important; //change whatever want.           }     </style> <?php } ?> 

Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -