cedcommerce
Forum Replies Created
-
You are welcome 🙂
Forum: Fixing WordPress
In reply to: 2 signup page at the same time!Hello Masoud,
Please add following code in your themes functions.php file :
add_action('init', 'cedcommerce_prevent_signup'); function cedcommerce_prevent_signup() { $signup_page = $_SERVER['REQUEST_URI']; if (strpos($signup_page, 'signup') !== false) { $cedcommerce_signup = get_option('users_can_register'); if($cedcommerce_signup == 1) { wp_redirect(home_url('your-new-signup-page'); exit; } } }hope it will works, If not then please contact us on support@cedcommerce.com so that we can figure out the exact solution
Thanks
CedCommerceForum: Plugins
In reply to: [WP Advanced PDF] Error messages upon activationHello David,
Its unfortunate that you are receiving this error message, please tell us your version of WP so that we can check it out clearly as on WP latest version this does not happens.
Thanks
CedCommerceForum: Fixing WordPress
In reply to: Unable to hide toolbar when viewing siteHello yzkoh
You can determine for which users the admin bar is shown. Put the following lines in your theme’s functions.php and it is only shown to users having capability ‘manage_options’if ( ! current_user_can( 'manage_options' ) ) { show_admin_bar( false ); }hope it will help you.
Forum: Fixing WordPress
In reply to: accidentally deleted a bunch of users – got backup butTo import these tables first take the new backup of tables from original database.
And then make tables empty by truncating them and then import your backup tables.Forum: Fixing WordPress
In reply to: How to use echo get_post_meta() in if/else statementHi riseUp,
As per your code, I suppose that you save the city of Alaska in alaska meta key and you want to show the city with state like : City Name, Alaska
Try this code
if(get_post_meta( $postid, 'alabama', true)) { echo get_post_meta($postid, 'alabama', true); echo ", Alabama"; } if(get_post_meta( $postid, 'alaska', true)) { echo get_post_meta($postid, 'alaska', true); echo ", Alaska"; }Hope it will fulfill your need.
ThanksForum: Fixing WordPress
In reply to: Saving data from an inputYes, You can access these variables in theme’s functions.php file
Forum: Fixing WordPress
In reply to: accidentally deleted a bunch of users – got backup butHello opentoesock,
Just create an other database and import your backup in that databse. And then take backup for those two tables “wp_users” and “wp_usermeta”
by exporting those tables indidually. And then import them into your original databse.
Hope this will help you.Forum: Fixing WordPress
In reply to: Saving data from an inputHi kjgbriggs,
In the input html which you have used
<input value="<?php echo $fromValue; ?>" style="height:40px;" type="text" id="fromValue" placeholder=""From" Text" class="emailInput" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">add an attribute name = “fromValue” or replace the above input element by
<input value="<?php echo $fromValue; ?>" style="height:40px;" type="text" name="fromValue" id="fromValue" placeholder=""From" Text" class="emailInput" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">and hope everything will work fine.
Forum: Fixing WordPress
In reply to: My sidebar is appearing at the bottom.Hi imaqination,
In Rosemary theme style.css file
On line number 65 :#main { width:75%; float:center; }Replace this by
#main { width:75%; float:left; }and everything will be fine.
Forum: Fixing WordPress
In reply to: Need To Remove Adsense CodeHie ShahShahid,
Please explain your problem in more detail. I just checked your site and not found any ad issue there.
Can you be specific with some screenshot or something.
Also please clarify which source you are using for ads. Have you used any plugin for that or manually integrated in your site in theme files.
ThanksForum: Plugins
In reply to: [Ajaxify Filters] dose not work widgetsHi elahehone,
As you are saying other widget plugins are also not working in your widget area, there must be some thing wrong with theme or sidebar code because still WP’s default widgets are working!
We also want to make you clear that our widgets will show up on shop-page only.
So to fix your issue we need your website details, please contact our support “support@cedcommerce.com” for further help.
Thanks
CedCommerceForum: Fixing WordPress
In reply to: How to change the style for a particular page title?Hie mikenet7482,
You have to target page.php in order to make changes to page layout.
You can also use css to do so.
Please check once if your page is not using any custom-template. If so, you have to make changes to that template file.
Hope this information help you.Forum: Fixing WordPress
In reply to: Remove Parent Category from Child Category URLHii mianshahzadraza,
For Remove parent category name please add this code, this will help you.add_filter( 'post_link', 'remove_parent_category', 10, 3 ); function remove_parent_category( $permalink, $post, $leavename ) { $cats = get_the_category( $post->ID ); if ( $cats ) { usort( $cats, '_usort_terms_by_ID' ); $category = $cats[0]->slug; if ( $parent = $cats[0]->parent ) { // Find parent categories and replace them in the link $parentcats = get_category_parents( $parent, false, '/', true ); $permalink = str_replace( $parentcats, '', $permalink ); } } return $permalink; }Forum: Fixing WordPress
In reply to: Image SliderTry to access the url http://yoursite.com/wp-admin/plugins.php and see if the plugins are visible. And logging-in as Super Admin,
it means that you’re running a multisite, if not then “Administrator” is ok.