its almost ready, we are testing on mobile device. Here is the screenshot
Yes I am aware of it, Now AnsPress assets is loaded everywhere. As some other plugin require AnsPress assets in admin and frontend. This will be fixed and I will provide a hook to load AnsPress assets whenever 3rd party need.
I found the same issues as said before. Can you post a picture of your conflict, maybe I will be able to fix it as I did for mine. Azman
@quaker, did you use a custom css plugin ?
I just found this code below that worked for me. (http://www.trickspanda.com/2014/04/hide-specific-admin-user-list-wordpress/) — add_action(‘pre_user_query’,’ap_pre_user_query’); function ap_pre_user_query($user_search) { global $current_user; $username = $current_user->user_login; if ($username == ‘<YOUR USERNAME>‘) { } else { global $wpdb; $user_search->query_where = str_replace(‘WHERE 1=1’, “WHERE 1=1 AND {$wpdb->users}.user_login != ‘<YOUR USERNAME>‘”,$user_search->query_where); } } —
For adding search box, you need to add following codes in your themes header.php after page-title (you can use it in every where): <div class=”change and use your search-form class in your theme”> <?php get_search_form( ); ?> </div> example: <header class=”entry-header”> <h1 class=”entry-title”><?php the_title(); ?></h1> <div class=”change and use your search-form class in your theme”> <?php get_search_form( ); ?> </dive> </header> GOOD LUCK!
AnsPress have a flexible theme override system, You can override every part of AnsPress. Refer to documents about theme override.
You can simply override answer.php and question.php and add your ads snippet. If you know how to override AnsPress theme file, then refer to documents. Paid question and answer extension will be available in future with these features: User can pay before asking Bet answerer can earn Subscribe for asking question etc..
Nice snippet. But I will suggest using user role instead of user id, then non of the admin will be shown.
Simply edit searchform.php and replace this: <form class="navbar-form navbar-left" action="<?php echo esc_url( home_url( '/' ) ); ?>"> to: <form class="navbar-form navbar-left" action="<?php ap_link_to('search'); ?>">