hotwebideas
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Cannot change font in parts of websiteYou can also add !important to the end of the CSS property or use wp_enqueue_script to load the stylessheet that has the target CSS.
Forum: Themes and Templates
In reply to: What does this do ?php the_title();?If I read this correctly, you do not want to edit the page title, but the title of the main site in the settings?
If so, you want get_bloginfo(‘name’). That will display the site title. Like jowaltham said, the_title is just the post or page title.
I hope this helps.
BruceForum: Everything else WordPress
In reply to: Difference between a post and a draftIn your MySQL database, look at the wp_posts table. The post_status field will say ‘draft’. For published, the post_status field will say “publish”.
Help that helps,
BruceForum: Fixing WordPress
In reply to: hardening wordpressIn your FTP, chmod all files 644 and directories 755. Once I did that, I have not been hacked.
Perfect, Tim!
Forum: Reviews
In reply to: [Front End Users] Fatal Error – Would not activateThanks, Rustaurius, I have upgraded to 5.3
Forum: Plugins
In reply to: [WP Shortcodes Plugin — Shortcodes Ultimate] How to make a box a fixed width?Have you tried the built in CSS editor? I can only imagine CSS of width:300px would be your solution, but only you can see the actual class of the box.
Your URL is not working. It redirects to index.php on that site.
My assumption is that you need to add CSS to the icon or your theme’s style.css and add display:inline; and a suitable width and height.
Forum: Plugins
In reply to: [WP Shortcodes Plugin — Shortcodes Ultimate] width and height from lightboxAdd a class in the CSS editor and then enter it into the class field of your form.
Forum: Plugins
In reply to: [WP Shortcodes Plugin — Shortcodes Ultimate] Posts ShortcodeI would try removing the attribute orderby=”modified” as the default is orderby=”date”. Sometimes I find that the shortcode caches, so maybe it is still showing orderby=”modified” even after you changed it to orderby=”date”. You can always delete the code and re-add it.
Forum: Plugins
In reply to: [WP Shortcodes Plugin — Shortcodes Ultimate] su progress bar css width code?Duplicate post. Moderator, please delete.
Forum: Plugins
In reply to: [WP Shortcodes Plugin — Shortcodes Ultimate] su progress bar css width code?Have you tried using your theme’s editor or the CSS editor in Shortcodes Ultimate??
Forum: Plugins
In reply to: [WP Shortcodes Plugin — Shortcodes Ultimate] CSS Cheat SheetIf you mean styles such as the Heading shortcode for instance, he has a purchase page for the styles. The link is right underneath the styles menu for shortcodes that use them.
Forum: Hacks
In reply to: Search Form to Work With Custom QueryYour query would need to include a parameter ‘post_type’=>’movies’ or whatever your custom post type is called.
For example:
$args = array( 'post_type' => 'movies', 'posts_per_page' => 2000, 'order'=> 'ASC', 'orderby' => 'title' );
Hope this helps.
Forum: Hacks
In reply to: Creating A Simple Addition Form In Admin DashboardI looked at your pastebin code and you cannot do it this way since it is not secure. Why does your form have an action to /wp-admin/admin-ajax.php?action=kk_adder when you are implementing ajax and jSON? I think javascript code is better for this and there would be no need for WordPress API code or PHP, but I see that you are trying to learn hook programming.
You have 2 action hooks that are not in the WordPress API:
add_action(‘wp_ajax_nopriv_kk_adder’, ‘kk_adder’);
add_action(‘wp_ajax_kk_adder’, ‘kk_adder’);The first parameter should be part of the WordPress API, not made up. The second parameter is correct, the function call name.
Instead of all this extra code, you may want to look into the hook wp_enqueue_script() which is how javascript is implemented.
This code would make more sense:
/** * Proper way to enqueue scripts and styles */ function theme_name_scripts() { wp_enqueue_style( 'style-name', get_stylesheet_uri() ); wp_enqueue_script( 'script-name', get_template_directory_uri() . '/js/kk_adder.js', array(), '1.0.0', true ); } add_action( 'wp_enqueue_scripts', 'theme_name_scripts' );
Then, in your theme. add a JS directory and write a javascript file kk_adder.js.
Doing it this way, you will still get experience writing WP hooks and add security.
Hope this helps.