WH646
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: How/where to include javascript for toggling sidebarHuzzah! I needed to change the $ to jQuery.
Thank you so much for your help, @sterndata.
Forum: Developing with WordPress
In reply to: How/where to include javascript for toggling sidebarThanks for the reply. I’m familiar with the codex, and I’ve tried the methods outlined there. As I said, I’m enqueuing the script that I created, but I’m looking for some help troubleshooting the js file itself or the enqueue code, both of which are included in my original post.
Any help would be appreciated.
- This reply was modified 8 years, 1 month ago by WH646.
Forum: Fixing WordPress
In reply to: Remove function from child themeAh. Added a new function to remove it. This worked:
function magic_remove_lead_paragraph($content) { global $post; return preg_replace('/<p([^>]+)?>/', '<p$1 class="something_else">', $content, 1); } add_filter('the_content', 'magic_remove_lead_paragraph');
Found solution here: https://www.ads-software.com/support/topic/theme-wp-bootstrap-how-to-remove-the-lead-formatting-on-every-page?replies=5
Forum: Fixing WordPress
In reply to: Remove function from child themeYea, I’ve used the child theme functions.php to enque the style.css from the parent theme. That’s working fine.
Forum: Fixing WordPress
In reply to: Remove function from child themeThanks, Andrew. Gave it a priority of 1 and no luck. Anything else? Much appreciated.
Forum: Fixing WordPress
In reply to: Remove function from child themeThanks, Andrew. I had tried
remove_filter( 'the_content', 'wp_bootstrap_first_paragraph' );
but no luck. What else do I need in there?Forum: Fixing WordPress
In reply to: Remove function from child themeThanks, jack. I could do that, I guess, but is there a way to just remove the functionality altogether?
My concern is that, say, I want to style <p> later on, I then have to go do the same to p.lead, and it just seems bloated to do it twice. I don’t want to have a class that is essentially useless.
Any advice on removing the function?
Hey, thanks, Chris. I got it working. I had to start over with a new export, but it’s working now. Thanks again.
Brad, thanks for the quick reply.
I changed the table prefix in config.php to match the prefix of the imported files. Then I used the login from the prod site to get into the local page. All good. Pages are there. But when I try to view or preview the pages, I get a 404 page not found.
Any ideas?