Jami Gibbs
  • Member for 6 years, 6 months
  • Last seen more than a month ago
Inserting AdSense code right after </head> tag
3 votes

Without using a plugin, the WordPress way would be to use the wp_head action to insert the script and then enqueue the script file: function mytextdomain_adsense() { $output=" <script> ...

View answer
Apply two different styles to Wiget Titles along with a decorative line
Accepted answer
0 votes

This will wrap a span around the first word and also the remaining words in the title. Adjust the class names as necessary: add_filter('widget_title', 'yourprefix_custom_title'); function ...

View answer
Recover Same Wordpress Admin Password
0 votes

You can try using a password cracking tool but this seems borderline unethical. I'm not sure that I understand the reason you would need to know the password at all if you aren't the owner of that ...

View answer
Question about do_shortcode
1 votes

That looks to be a WooCommerce shortcode. You shouldn't edit those core files directly because your customization will get overwritten in the next plugin update. Additionally, wrapping a list item in ...

View answer
Private pages that work when you are not logged into WP admin
Accepted answer
4 votes

If you don't want to use a plugin (or can't find one that does what you're needing), you might want to approach it this way: Add a custom meta box that allows you to mark the post as hidden. ...

View answer
Unable to activate wordpress importer after installing it
Accepted answer
4 votes

That error suggests that the WXR_Parser class is already "running" or declared. It's possible that a theme or another plugin has incorporated that class and did not check if it existed already before ...

View answer
standard callback function for wp_list_comments
0 votes

It sounds to me like you're wanting to extend the default comments walker with your own: class My_Walker_Comment extends Walker_Comment { // giddy up } If so, this answer explains it quite well.

View answer
Only displaying zip files with wp media
Accepted answer
2 votes

The zip files are in a subtype called application so you should try using: type: 'application/zip' A list of default allowed mime types is available from wp_get_mime_types.

View answer
Change Checkout “Place Order” text if cart has a specific product
0 votes

You can conditionally check for a page with is_page so that the woo_custom_order_button_text function only returns for whichever page you specify: // When any single Page is being displayed. is_page()...

View answer
Uncaught Reference error in Retina.js
Accepted answer
0 votes

It sounds like it might be an issue with the way the distributed version of the script is compiling. I found this issue reported on their Github repo that could be related. Try using the minified ...

View answer
Altering the design of WooCommerce notifications
Accepted answer
0 votes

It sounds like you might want to start by learning a little bit about CSS which isn't necessarily a WordPress question (there are many CSS tutorials out there to get you started). Then to change ...

View answer
Adding thumbnail to search results & changing content.php
0 votes

Use the_post_thumbnail. For example: <?php if ( has_post_thumbnail()) : ?> <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" > <?php ...

View answer
How to save array option as text and not integer?
Accepted answer
0 votes

Your options should have a key => value structure if you want it to return something other than the key number: 'options' => array( 'option_a' => __('option a', 'woocommerce' ), '...

View answer
Using more widget in main page cause slow loading Wordpress?
1 votes

It looks like server response time and stylesheet loading are causing the greatest delay: You can measure the network performance of your site yourself using the Network panel in Chrome: Right click >...

View answer
Putting hyperlinked and non-hyperlinked text in one line, centered, on .php
Accepted answer
0 votes

This isn't really a WordPress specific question but here's what you'll likely want to do. Notice also the example below is using the PHP date function which will dynamically update the year: style....

View answer
How do I pull post from standard post format?
Accepted answer
0 votes

The terms parameter will only accept custom post types and, like you mentioned, post-format-standard is not one. Try instead to use the 'NOT IN' operator to test against the custom posts you don't ...

View answer
Limit number of pages that use a specific template?
4 votes

You can approach this by first using a database query to count the number of pages that are already using the template: $query = "SELECT COUNT(*) as total FROM prefix_posts as p JOIN ...

View answer
Change the location of add_theme_support( 'custom-header' ) in the customizer
Accepted answer
1 votes

This is kind of a hacky way to accomplish this but digging around core reveals that the default section name is header_image: https://core.trac.wordpress.org/browser/tags/3.5.1/wp-includes/class-wp-...

View answer
Woocommerce registration page
Accepted answer
5 votes

Using the [woocommerce_my_account] shortcode, a user will see their account details if they're logged in and if they're not logged in, they'll see a login and registration form. Using the same page ...

View answer
How to add a user profile page to frontend?
Accepted answer
1 votes

If you're using WooCommerce, they have a shortcode that displays the logged in user's account details on a front end page: [woocommerce_my_account]

View answer
How do I insert a photo at the top of the sidebar?
0 votes

Looking at your site, it seems that the broken image on the top left side is your logo. I suspect there might be a logo upload for the theme but we won't be able to direct you to where that logo ...

View answer
Why does wp_enqueue_style() in plugin not load stylesheet?
Accepted answer
9 votes

First thing to mention is that you don't need to use wp_register_style if enqueuing within the same function. You can replace it with wp_enqueue_style and remove the duplicate. As for why your ...

View answer