Mr Case
Forum Replies Created
-
Forum: Networking WordPress
In reply to: manually change https to http…I see! do you have FTP access to your website files? If you do, you can try to find ‘wp-config.php’ if you do just add these lines if they aren’t already there.
define('WP_HOME','https://angboontiong.com'); define('WP_SITEURL','https://angboontiong.com');
if that doesn’t help then remove them…and maybe try a fresh install
Forum: Networking WordPress
In reply to: manually change https to http…what is your website URL?
Forum: Fixing WordPress
In reply to: wordpress cant find wp-cron.php ! But the file existsit is usually right in the root directory! Along with files like ‘wp-settings.php’ and ‘wp-config.php’
unless you mean you know where to find it, WordPress itself just doesn’t seem to be able to use it. Maybe check your ‘wp-config’ file and see if it has been disabled.
- This reply was modified 6 years, 8 months ago by Mr Case.
Forum: Developing with WordPress
In reply to: Custom Post Type and User Rolemaybe try adding capabilities to all roles you want to be able to edit that custom post type and see if it works
function add_custom_caps() { $roles = array('ebf_merchant', 'editor','administrator'); foreach($roles as $the_role) { $role = get_role($the_role); $role->add_cap( 'read' ); $role->add_cap( 'read_credit_app'); $role->add_cap( 'read_private_credit_app' ); $role->add_cap( 'edit_credit_app' ); $role->add_cap( 'edit_others_credit_app' ); //maybe not? $role->add_cap( 'edit_published_credit_app' ); $role->add_cap( 'publish_credit_app' ); $role->add_cap( 'delete_others_credit_app' ); //maybe not? $role->add_cap( 'delete_private_credit_app' ); $role->add_cap( 'delete_published_credit_app' ); } } add_action('admin_init', 'add_custom_caps', 5 );
Forum: Developing with WordPress
In reply to: Custom Post Type and User RoleHey mate,
I think this bit is the issue,'capability_type' => 'credit_app',
look here to see what you can have:
https://developer.www.ads-software.com/reference/functions/get_post_type_capabilities/start with that first and if you still get errors, or undesired results come back.
Forum: Fixing WordPress
In reply to: Reset site existenteOlá amigo,
Você deve usar o FTP para ver quais arquivos você possui em seu site. O diretório wordpress deve ter um arquivo chamado ‘index.php’ se houver outro arquivo do seu site antigo, isso é o que será mostrado. O WordPress está lá porque esse link funciona: https://aebarquitetura.com.br/wp-login.phpForum: Fixing WordPress
In reply to: How to Use Full-Width Page Template for Posts?glad you were able to figure it out, and it’s a method that works for you given your limited knowledge with code.
Yes, the commas simply separate the different targeted elements that share the same style. The last in the group doesn’t need a comma after. everything between the curly braces are the actual styles. Seems like you figured it out pretty good!
The image being centered and larger text is another easy one, again targeting this page specifically
https://www.thecyclingcanadian.com/staring-camera-like-buffoon/
we can center the image by setting the display as a block element and making the left and right margin set to auto. The paragraph text can be made larger by just setting the font size higher, i chose 18 you can make it whatever you want. As a graphic designer i always stick closely to the “2 to 3 alphabets per line” rule. That way, like you said, readers don’t get lost. read more about that here: https://mikeyanderson.com/optimal_characters_per_line
here is the CSS to affect those two items on that specific page
.postid-27116 .singleimage img { margin: 0 auto; display: block; } .postid-27116 p { font-size: 24px; }
again, this method, although not ideal, should get you what you are looking for
Forum: Fixing WordPress
In reply to: How to Use Full-Width Page Template for Posts?I see what you mean. And generally, yes a CSS rule would target every element across your site that had whatever class or ID you specified. However I noticed that your theme gives a class to the specific page/post you are on. So you can, if you choose, target each specifically to achieve your results. It is extremely cumbersome, but doable. For example on this page:
https://www.thecyclingcanadian.com/getting-30-day-tourist-visa-extension-indonesia/
if you inspect the code you see the <body> has a class of ‘postid-26942’ so with that very specific knowledge you can target elements just on that page with this css:
/* make content full width */ .postid-26942 #content.left { width: 96%; } /* hide sidebar content */ .postid-26942 #sidebar { display: none; }
and it should only affect THAT particular page. And if you want to give other pages that same style then you could just keep adding to the list, for example if you want to add this page:
https://www.thecyclingcanadian.com/staring-camera-like-buffoon/
which has a <body> class of ‘postid-27116’
you could add to your css like this:
/* make content full width */ .postid-26942 #content.left, .postid-27116 #content.left { width: 96%; } /* hide sidebar content */ .postid-26942 #sidebar, .postid-27116 #sidebar { display: none; }
Like I said, you see how this could get cumbersome. But it would work if you really want to have specific use cases for going full width or not. hope that makes sense and helps
Forum: Fixing WordPress
In reply to: Deleted old Admin User and broke image linksWhich database? mysql or php
I mean the database for your WordPress site. Which is probably a MySQL database. And Dion is right about queries, so be warned. If you have just a few images that are affected then using a visual Database tool like phpMyAdmin would make it easy to see what you are doing.
Forum: Fixing WordPress
In reply to: Deleted old Admin User and broke image linksYou might be able to change that in the database. If you are comfortable with that or have access to something visual like PHPmyAdmin.
The images from the media library can be found in the wp_posts (or whatever your post table is prefixed with) and are under the “attachment” post_type. Maybe you can just change the post_author column to be ‘1’ which is usually the ID specified for the main Admin. It might be worth a shot trying one image and if that fixes it then change the rest. To my knowledge there is no other reference to a post author other than that.
Forum: Fixing WordPress
In reply to: How to Use Full-Width Page Template for Posts?what is your site? If i can take a peek at one of your post pages and compare it to one of your full with pages, I can probably throw you a couple lines of CSS you can add to a custom CSS plugin. Not a promise, but it’s worth a look.
Forum: Fixing WordPress
In reply to: How to Use Full-Width Page Template for Posts?Usually all posts have templates for different views. Like the archive view and the single post view. They are made with the ‘archive.php’ and ‘single.php’ files of your theme, respectively. You can change these files and the markup within, along with the styles of your themes ‘style.css’ file. What you should probably do is create a child theme.
https://codex.www.ads-software.com/Child_Themes
And then customize those two files to suit your needs. By using a child theme you can guarantee that the changes or updates you make will not be reverted when yo update your main theme.
And to answer your question about posts vs pages, they can often feel the same but are different in what they are. Posts are things that can be taxonomized, or organized by their attributes. Whereas pages can generally be seen as custom or standalone. For instance blog POSTS are generally made up of the same items, title, author, post date, and content. They can also be categorized and tagged. Pages, like an ‘about page’, or ‘contact us’ page are generally one-offs. Hope that makes sense a little more.
- This reply was modified 6 years, 8 months ago by Mr Case.
Forum: Fixing WordPress
In reply to: In certain screenres. odd padding/aligning of contentAh, i see what you mean now. on the right there is more space. I applied the following style to remove some padding. and it seems to fix that. At least when the images are realigned.
.single .hentry, .hentry.portfolio-entry { padding-right: 0; }
Forum: Fixing WordPress
In reply to: WP Thumbnail Preview Issuehere is a very detailed write up on that subject. Maybe after reading you can better determine what has happened in preventing this from working on your site.
https://deliciousbrains.com/pdf-preview-images-wordpress-real-world/
Forum: Fixing WordPress
In reply to: In certain screenres. odd padding/aligning of contentI looked at this page and I could not see anything out of the ordinary. Did you fix it already?