cedcommerce
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Moving wordpress to new directory – no links have the new urlHi sharebwic,
For migrating any site you have to move your whole wordpress package to new location as well you need to migrate the database for updating the new location and url saved in the database then export the database and import it. There are many plugin which is used for database migration. I suggest you to use WP MIGRATE DB(https://wordpress.org/plugins/wp-migrate-db/) plugin for migrating database.
ThanksForum: Fixing WordPress
In reply to: Changed WP Directory and cannot add mediaHello
please try to change permissions of uploads folder directory to 755 for more information about permissions you can refer this https://codex.wordpress.org/Changing_File_Permissions.
Thanks hope this will help you.Forum: Fixing WordPress
In reply to: Need help finding functions.phpHello ams11037
If you are not able to see “Editor” within “Appearance” tab, you must had installed any security plugin,so please uninstall your plugins one by one and check which plugin is causing this issue.Once editor is visible then go to appearance->editor select your theme and you can see functions.php and style.css there.
hope it will help youForum: Fixing WordPress
In reply to: cant log inHello wuzwar,
When getting an “unexpected }” error, you’ve mostly closed a code block too early.
Last statement in a code block
It can happen for any unterminated expression.
And if the last line in a function/code block lacks a trailing ; semicolon:
function whatever() { doStuff() } ⇧Correct One:
function whatever() { doStuff(); } ⇧Go to this location /home/jj7b041845dd/ftp/instalator/wordpress/wp-content/themes/awaken-pro/functions.php on line 496 and modify your code.
Hope this will solve your problem.
Thanks
Forum: Fixing WordPress
In reply to: Problem with custom linksHello borismoggy,
When viewing the menu administration page wp-admin/nav-menus.php, click on Screen Options (top right), Hidden away in the dropdown there, below the usual Show on screen checkboxes, is another line of Show advanced menu properties checkboxes.
Just check the box for Link Target and then all your Menu Items will have the additional option of Link Target : “Same window or tab” or “New window or tab”.Hope this will solve your problem.
Thanks
Forum: Fixing WordPress
In reply to: Calling scripts on certain pageHello francisgallagher,
Please add this code in functions.php file./** * Dequeue Script * Hooked to the wp_print_scripts action, with a late priority (100), * so that it is after the script was enqueued. */ function dequeue_script_on_specific_page() { if(!is_page(7084) ) { wp_dequeue_script('WPTS'); } } add_action( 'wp_print_scripts', 'dequeue_script_on_specific_page', 100 );Hope this will solve your problem.
Thanks
Forum: Fixing WordPress
In reply to: Change Role based on email domain nameAdd following code in your theme functions.php file and when a user register having email domain name “example.com” then his role is automatically become Contributor.
add_action( 'user_register', 'cedcommerce_update_role' ); function cedcommerce_update_role($user_id) { $user_data = new WP_User($user_id); if(isset($user_data->data)) { $userdata = $user_data->data; $user_mail = $userdata->user_email; if (strpos($user_mail, 'example.com') !== false) //Change the domain name by your domain name { $user_data->set_role('contributor'); } } }Thanks
Forum: Fixing WordPress
In reply to: go to home page after loginGiven code should work in your case but if not then go through the link and i hope it will resolve your issue
https://codex.wordpress.org/Plugin_API/Filter_Reference/login_redirectForum: Fixing WordPress
In reply to: Gallery crashHello crystyan18,
please add this code in functions.php file.function ms_image_editor_default_to_gd( $editors ) { $gd_editor = 'WP_Image_Editor_GD'; $editors = array_diff( $editors, array( $gd_editor ) ); array_unshift( $editors, $gd_editor ); return $editors; } add_filter( 'wp_image_editors', 'ms_image_editor_default_to_gd' );Hope this will solve your problem.
Thanks.
Forum: Fixing WordPress
In reply to: display post title on separate pageHi arunmilky,
You can show the page title of current page/post using get_the_title() function. If you want to display specific post title on a page then you can use same function and pass the id of that post to the function get_the_title($post_id).
ThanksForum: Fixing WordPress
In reply to: changing permalink for a custom postHi allm,
Wordpress provides option to edit permalink of each and every post-type, no matter its custom post type.
There must be some glitch with register_post_type() function where you have registered your custom-post-type.
Try to add this line in your register_post_type():
‘rewrite’ => trueHope this will solve your problem.
In case not, send me your code-snippet of registering custom-post-type.Thanks
Forum: Fixing WordPress
In reply to: Unattached MediaHello pasqualerose,
Yes if you delete post or page than that images are still display under unattached option in menu tab in the media library.Forum: Fixing WordPress
In reply to: wp_generate_attachment_metadata does not work for non-image filesHi thefriendlancer,
Please write below file somewhere in the beginning of your code :
<?php include( ABSPATH . ‘wp-admin/includes/image.php’ ); ?>
Hope it work.In case not, can you please provide complete code snippet so that it become easy to debug your problem. Can you please provide the link. Hope you are uploading file from frontend.
Following links can be useful:
https://codex.wordpress.org/Function_Reference/wp_insert_attachment
https://codex.wordpress.org/Function_Reference/wp_generate_attachment_metadata
https://codex.wordpress.org/Function_Reference/wp_generate_attachment_metadataThanks
Forum: Fixing WordPress
In reply to: Text in list of post don't fit to frameHey kwadromat,
There is the following css under the <style id=”yellow-pencil”> tag:
#main .entry-content{ bottom:auto; right:auto; position:relative; top:109px; left:-23px; }just remove the “top:109px;” from this css code, due to this you content goes 109 pixel down from its wrapper.
Forum: Fixing WordPress
In reply to: go to home page after loginHello shellwe
Put this code in your functions.phpfunction custom_redirect_fuction() { global $redirect_to; if (!isset($_GET['redirect_to'])) { $redirect_to = get_option('siteurl'); } } add_action('login_form', 'custom_redirect_fuction');Hope it will solve your problem.