Jim
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Astra] Can the theme developer team help me with a child themeI wimped out and downloaded a child theme from your generator page. It would take too long to get my head back into all the files and template tags t figure out where I went wrong. Now I can run all my XAMPP installs. What is this:
* @package Tower
I did notice that I had a reference to MY theme from the child theme. All the code is what I am using on my active site, though I will be making the changes that you suggested. What does
@package
do?Forum: Themes and Templates
In reply to: [Astra] Can the theme developer team help me with a child themeOh, the line
get_template_part( 'template-parts/content', 'author' );
get’s the author meta. It’s been a while since I’ve been in my theme.Forum: Themes and Templates
In reply to: [Astra] Can the theme developer team help me with a child themeThanks for all of that. I started editing the file called because it was originally calling ‘posts’ when I wanted it to be ‘author’. I created all the templates files off of archive.php with the intention of doing something unique at a later date. I probably moved too fast and didn’t pay attention to the file I was in.
Sorry for the late reply. I’ve been working with A2 to migrate my sites to their servers.
Forum: Themes and Templates
In reply to: [Astra] Can the theme developer team help me with a child themeLooks like I forgot to change
@package Tower
to beAstra-child
;Tower
is the name of my theme. Though, I do not even know what that part of the comment is for.- This reply was modified 2 years, 10 months ago by Jim.
Forum: Themes and Templates
In reply to: [Astra] Can the theme developer team help me with a child themeOh my, that formatted horribly! Here is content-posts.php:
<?php /** * Template part for displaying posts * * @package Tower */ ?> <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <!-- <header class="entry-header"> --> <div class="single-section"> <?php if( has_post_thumbnail() ): ?> <div class="leftside-blog"> <?php the_post_thumbnail( 'medium' ); ?> </div><!-- .leftside-blog --> <?php else : ?> <div class="leftside-no-image"> <!-- <?php the_post_thumbnail(); ?> --> </div><!-- .leftside-blog --> <?php endif; ?> <div class="rightside-blog"> <?php the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' ); if ( 'post' === get_post_type() ) : ?> <div class="entry-meta"> <?php get_template_part( 'template-parts/content', 'author' ); ?> </div><!-- .entry-meta --> <?php endif; ?> <!-- </header> --> <!-- .entry-header --> <div class="entry-content"> <?php the_excerpt(); ?> <!-- <p><a href="<?php the_permalink(); ?>" class="btn btn--blue">Go to post »</a></p> --> </div><!-- .entry-content --> <footer class="entry-footer"> <?php get_template_part( 'template-parts/content', 'meta' ); ?> </footer><!-- .entry-footer --> </div><!-- .rightside-blog --> </div><!-- .single-section --> </div><!-- #post-<?php the_ID(); ?> -->
- This reply was modified 2 years, 10 months ago by Jim.
Forum: Themes and Templates
In reply to: [Astra] Can the theme developer team help me with a child themeHere is author.php which is a copy from my theme. I added this fie into the root of the child theme:
<?php /** * * @package Astra-Child * */ get_header( 'post'); ?> <main id="primary" class="site-main"> <div class="container"> <h1 class="page-title"> <?php wp_title( '' ); ?> <span>Testing from <strong>author.php</strong></span> </h1> </div> <div class="container sidebar-page"> <article class="blog-page"> <?php if ( have_posts() ) : ?> <header> <h1 class="page-title screen-reader-text"><?php single_post_title(); ?></h1> </header> <?php /* Start the Loop */ while ( have_posts() ) : the_post(); get_template_part( 'template-parts/content', 'posts' ); endwhile; else : get_template_part( 'template-parts/content', 'none' ); endif; ?> <div class="paginate-container"> <div class="page-nav"> <?php echo wp_kses_post( paginate_links() ) ?> </div> </div> </article> <!-- .blog-page --> <aside class="blog-sidebar"> <?php get_sidebar(); ?> </aside> </div><!-- .container .sidebar-page--> </main><!-- #main --> <?php get_footer();
Forum: Themes and Templates
In reply to: [Astra] Can the theme developer team help me with a child themeFYI, I have 3 WP installs and I’m using XAMPP: 1. is the one with the child theme and is brand new, 2. is an old one I used for learning to build a theme, and 3. is the theme I built for my website. I just posted in a web dev sub-reddit about getting errors in XAMPP and I can not load my pages or posts for the install with my theme. The debog.log mentioned a memory size issue for a few includes file and for my template-parts/content-author.php file. Both things happened on the same day – the “infinite loop” and my XAMPP acting up. I did switch from the Astra chld theme install to my theme without stopping and restarting XAMPP, which may be the problem. I may have to reinstall XAMPP since it is 2 years old.
Another thing I thought about was that I included a template-parts folder in my child theme where I added content-author.php, although I had author.php set to pull from content-posts.php. I never got around to actually making the archive pages different from each other. So let me load that one here.
Forum: Plugins
In reply to: [WooCommerce] Uninstalling WoocommerceI reinstalled the plugin after commenting out the code snippet in the config file. Then I un-commented the snippet, deactivated the plugin, removed it, and then everything was gone.
Forum: Plugins
In reply to: [WooCommerce] Uninstalling WoocommerceANSWER: Yes, the plugin actually has to be installed for the code snippet to work. Oh, boy – what a lot of work that you need to do to remove a plugin!
Forum: Plugins
In reply to: [WooCommerce] Uninstalling WoocommerceIt’s definitely not working because I have multiple page views in my options table with values in the option_name column prefixed with woocommerce or widget_woocommerce. But I removed the plugin months ago. What’s with this line from the docs:
Then when you deactivate and delete WooCommerce it will remove all of its data from your WordPress site database.
Are you telling me that you have the plugin installed, add the line to wp-config THEN remove the plugin?
Forum: Plugins
In reply to: [WooCommerce] Uninstalling WoocommerceNo – I manually deleted them. Plus, pages and posts in the trash can be restored if done within 30 days I believe. Which means the data is still in the db.
- This reply was modified 2 years, 10 months ago by Jim.
Forum: Plugins
In reply to: [WooCommerce] Uninstalling WoocommerceHere is a link to a screenshot that I uploaded to my media library: https://fairmountpetservice.com/Blog/wp-content/uploads/2022/01/woo-pages.png
Not sure if it matters but I am on SiteGround.
- This reply was modified 2 years, 10 months ago by Jim.
Thanks, that’s what I did. I added ads to two sites but I removed the plugin from one site. I installed it on both sites yesterday, and I got the common errors from Google Search Console so I removed it from that site. It may be a coincidence because it was the same 3 errors that everyone always gets: links too close, text too small, and content wider than screen. Is there a setting to make sure that you don’t get errors from Google? I chose responsive ad for my Adsense ad units.
Ok, that is news to me. I don’t care how it gets into the sidebar. Which do you think is the best or easiest to get an ad in the sidebar as the last element
1. As a widget with insertion set to disabled, or
2. Remove the sidebar widget and choose automatic insertion After HTML element? For that one, I was using the ID for the CF7 form.I just tried the 1st one and it seems good and is now working – THANKS! Do you recommend one method over the other?
Ok, I checked the Remote debugging checkbox on the Debugging tab after clicking the Gear icon. Do I need to disable WP Fastest Cache?