Jump to content
eglashcreative

Thoughts on header with search / widget functionality

Recommended Posts

eglashcreative

Hi all,

 

I'm currently using Crackbar for my fixed navbar, and full-width sidebar for an additional text area beneath my footer (Footer Column Sidebars).

 

What I need to do is create an area under Crackbar that can include a search function (preferably just the search widget, not a plugin), and other uses, including maybe a slider or image/logo. Point is, I'm not sure what to use now that Full Width Sidebar has been used.

 

When I click Drag & Drop / Header, there's nothing to choose from that would allow any of the above. Any ideas? Maybe a Section that I don't see in the Store?

Thanks for your time.


Joe Eglash

Eglash Creative

Share this post


Link to post
Share on other sites
Simon

Use the contentbox section, its free.

You can put anything inside it, text, html even shortcodes.

Share this post


Link to post
Share on other sites
eglashcreative

Simon - Exactly what  I needed, many thanks.


Joe Eglash

Eglash Creative

Share this post


Link to post
Share on other sites
eglashcreative

Hmm... though I can't add a search field widget to it. Any thoughts? Thanks.


Joe Eglash

Eglash Creative

Share this post


Link to post
Share on other sites
Rob

Well, you could implement the Universal Sidebar, but this is 'full width' and not broken into containers, so you can't have different components set as widgets. 

 

Personally, I'd simply add the search widget to a traditional sidebar, rather than attempting to add it to the header area, if, that is, you want to use only the WordPress search. 

 

That said, if you opt for the Google Search, that could be added to a grid section or a box.  It cannot successfully be added to Morefoot, and I don't recommend it for footer columns. 

 

Personally, I'd follow Simon's suggestion, then implement a grid within the content box, using the grid found here:  http://demo.pagelines.me/. In one of those grids, you could add the code from Google to include a Google Custom Search. The other grid fields can be used for your other purposes.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Similar Content

    • mtaus
      By mtaus+
      How can I remove the Search function from NavPro?
    • Paul
      By Paul+
      I was surprised to see I had no menu today - out of the blue - its actually moved to the bottom of the page!  After hours of fiddling and disabling every single plugin, leaving just plagelines the issue is still present.  See video for a basic text box - I moved it into the head and it jumps to the bottom and shows just above the footer but below the main content.  I have a temp fix by placing the menu into the first row on the main content but it does mean other than my home page, all other pages have no menu.  A quick fix is very urgent for this bug.
      https://thelaptopfixers.com
       
       
    • russe-intensif
      By russe-intensif+
      Hi team,
      checking my site today, i'm surprised to see my MegaNav all in bottom of the pages, while it's in header.
      After getting to change it in couple of pages onto Template part (too time consuming !), i'm desperate and ask you for help :-)
      apprendre-le-russe-avec-ania.fr
      Thank you in advance !

    • flourishdesignstudio
      By flourishdesignstudio+
      Hello,
      I have an older site that was built using PageLines several years ago (prior to the release of DMS). I wanted to leverage some of the power of your new PL5 plugin but the theme prevents be from adding any generated custom sidebars to the theme (through the drag and drop interface) and does not allow me to add any PL5 sections/containers/etc to the header or footer. Is there any way to easily override that or am I stuck only using PL5 in the content areas of the site?
      Thanks so much for the help!
    • John Olsson
      By John Olsson+
      Hello, i'm working on a webshop, and got this code to really boost the search within WP. But when adding this code to functions.php the front end media library search flipped totally, and not working at all, any ideas what's the problem?
      function atom_search_where($where){ global $wpdb; if (is_search()) $where .= "OR (t.name LIKE '%".get_search_query()."%' AND {$wpdb->posts}.post_status = 'publish')"; return $where; } function atom_search_join($join){ global $wpdb; if (is_search()) $join .= "LEFT JOIN {$wpdb->term_relationships} tr ON {$wpdb->posts}.ID = tr.object_id INNER JOIN {$wpdb->term_taxonomy} tt ON tt.term_taxonomy_id=tr.term_taxonomy_id INNER JOIN {$wpdb->terms} t ON t.term_id = tt.term_id"; return $join; } function atom_search_groupby($groupby){ global $wpdb; // we need to group on post ID $groupby_id = "{$wpdb->posts}.ID"; if(!is_search() || strpos($groupby, $groupby_id) !== false) return $groupby; // groupby was empty, use ours if(!strlen(trim($groupby))) return $groupby_id; // wasn't empty, append ours return $groupby.", ".$groupby_id; } add_filter('posts_where','atom_search_where'); add_filter('posts_join', 'atom_search_join'); add_filter('posts_groupby', 'atom_search_groupby');  
×