Ben N
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Twenty Nineteen] mobile submenuThat right there, is in fact the mobile behaviour for the menu.
What exactly are you trying to change?
(try commenting out this section of code, and see how that changes your website)
Forum: Themes and Templates
In reply to: [Twenty Nineteen] Twenty nineteen custom template paginationHaven’t tested. But, I believe this will work for you:
(please note: I’ve commented at the lines I’ve added for you)
<?php /* Template Name: Skils */ get_header(); ?> <section id="primary" class="content-area"> <main id="main" class="site-main"> <?php /*Page loop*/ /* Start the Loop */ while ( have_posts() ) : the_post(); get_template_part( 'template-parts/content/content', 'page' ); // If comments are open or we have at least one comment, load up the comment template. if ( comments_open() || get_comments_number() ) { comments_template(); } endwhile; // End of the loop. /*End page loop*/ /*Post loop*/ // Define custom query parameters /* THE BELOW LINE IS A NEW ADDITION */ $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; $custom_query_args = array( 'category_name' => 'how_to', 'posts_per_page' => 2, /* THE BELOW LINE IS A NEW ADDITION */ 'paged' => $paged ); // Instantiate custom query $custom_query = new WP_Query( $custom_query_args ); // Pagination fix $temp_query = $wp_query; $wp_query = NULL; $wp_query = $custom_query; //print_r($custom_query); // Output custom query loop if ( $custom_query->have_posts() ) : while ( $custom_query->have_posts() ) : $custom_query->the_post(); // Loop output goes here get_template_part( 'template-parts/content/content' ); endwhile; endif; // Reset postdata wp_reset_postdata(); // Previous/next page navigation. twentynineteen_the_posts_navigation(); // Reset main query object $wp_query = NULL; $wp_query = $temp_query; /*End post loop*/ ?> </main><!-- #main --> </section><!-- #primary --> <?php get_footer();
Forum: Themes and Templates
In reply to: [Twenty Nineteen] Menu navigationNavigate to your theme directory > template-parts > header in wp-content:
twentynineteen/template-parts/header/
Open a file called:
site-branding.php
Replace the entire contents of the file with the below (provided you have not made any other changes to this template file in the past):
<?php /** * Displays header site branding * * @package WordPress * @subpackage Twenty_Nineteen * @since 1.0.0 */ ?> <div class="site-branding"> <?php if ( has_custom_logo() ) : ?> <div class="site-logo"><?php the_custom_logo(); ?></div> <?php endif; ?> <?php $blog_info = get_bloginfo( 'name' ); ?> <?php if ( ! empty( $blog_info ) ) : ?> <?php if ( is_front_page() && is_home() ) : ?> <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> <?php else : ?> <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p> <?php endif; ?> <?php endif; ?> <?php if ( has_nav_menu( 'menu-1' ) ) : ?> <nav id="site-navigation" class="main-navigation" aria-label="<?php esc_attr_e( 'Top Menu', 'twentynineteen' ); ?>"> <?php wp_nav_menu( array( 'theme_location' => 'menu-1', 'menu_class' => 'main-menu', 'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>', ) ); ?> </nav><!-- #site-navigation --> <?php endif; ?> <?php if ( has_nav_menu( 'social' ) ) : ?> <nav class="social-navigation" aria-label="<?php esc_attr_e( 'Social Links Menu', 'twentynineteen' ); ?>"> <?php wp_nav_menu( array( 'theme_location' => 'social', 'menu_class' => 'social-links-menu', 'link_before' => '<span class="screen-reader-text">', 'link_after' => '</span>' . twentynineteen_get_icon_svg( 'link' ), 'depth' => 1, ) ); ?> </nav><!-- .social-navigation --> <?php endif; ?> <?php $description = get_bloginfo( 'description', 'display' ); if ( $description || is_customize_preview() ) : ?> <p class="site-description"> <?php echo $description; ?> </p> <?php endif; ?> </div><!-- .site-branding -->
Save this file, upload. Done.
Forum: Themes and Templates
In reply to: [Twenty Nineteen] Remove border from hyperlinked imageI am unable to see the problem you’re referring to. Do you have a link to the exact page or description of the area to look at?
My browser shows no border around images. So I can only assume that you found a fix?
Forum: Themes and Templates
In reply to: [Twenty Nineteen] Removing underline from all linksIt’s not the most beautiful code, I personally don’t like using !important, however a simple css rule that would force all links to have no underlines would be:
/* Place this in your template CSS file or Theme CSS Editor */ a { text-decoration: none!important; }
What I would do, for the sake of legibility and user experience, is extend this slightly to the following:
/* Place this in your template CSS file or Theme CSS Editor */ a { text-decoration: none!important; } .entry .entry-content a { text-decoration: underline!important; }
What the above now does, is removes underlines on links from everywhere except the main content area of posts and pages.
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Fishing competition!Okay, so turns out I’m being a little impatient expecting Google to crawl my new sitemap so soon. I’ve just noticed a message in my Google WMT > Sitemaps dashboard saying “URLs ready for crawling”.
Apologies for raising the alarm so soon, I had wrongly assumed when Google told me my sitemap was “processed”, that they meant crawled. It turns out that processing comes just after submission, then crawling. Happy days.
Hopefully in a week or two – this should be updated. If not, I shall know to raise a support ticket again to let you know and see if anybody can help. For now though, it seems I’m in the clear.
Forum: Themes and Templates
In reply to: [Twenty Thirteen] Sidebar: Widget overlaps footerDefinitely – I’ll update my post tomorrow to guide through the steps to add this to a child theme. Hopefully for now, anybody who is confident enough to go ahead and create/edit their own child themes can do so- and I’ll get my post fixed up some time tomorrow.
Forum: Themes and Templates
In reply to: [Twenty Thirteen] Sidebar: Widget overlaps footerAh I’ll take that on board for future posts and be sure to provide a little more along with any links I may have. Apologies for getting the wrong end of the stick, I just noticed that nowhere else online had a solution that was practical without having to move the footer down a whole lot. It makes sense to hide what isn’t necessary and let your posts decide the page-height.
As for the child theme – that’s a good point; I probably should set that up in the demo for less savvy users. It’d definitely be safer to do this in a child-theme in that instance.
Thanks for pointing that out for me though; I appreciate it, and I’ll definitely take it with me for future posts.
Forum: Themes and Templates
In reply to: [Twenty Thirteen] Sidebar: Widget overlaps footer@wpyogi Ah – I’m not trying to promote my site, sell themes, plugins or anything else; merely provide a solution to the issue raised. It isn’t feasible for me to post all of that in here…
It’s rather frustrating you’ve tried to suggest I am doing anything other than trying to help to be honest. You’ve just quoted rules which I’m fully aware of, and haven’t broken any.
If you’re helping out, do your best to fully assist the person having the issues (I provided a solution), and do not use your support as an excuse to promote your own site/themes/plugins (no plugins or themes here, site – perhaps, but only because I can’t write an essay here). That behavior is frowned upon. (I haven’t done that behaviour, what if someone else linked to my site? would that be frowned upon for providing the same solution?)
Similarly, we ask that you not demand payment (No payment neccesary), solicit work (no obligations either!), or take the conversation to a private location (none needed, they can comment here). The point of helping out on the www.remarpro.com forums is to help out on the forums. Remember, we don’t want to be this guy. Leave something for the next person who searches to have an answer too. (I left a solution)
Forum: Themes and Templates
In reply to: [Twenty Thirteen] Sidebar: Widget overlaps footerHi Jeremy,
Kudos on a brilliant plugin.
I’m using Jetpack to manage my most popular Posts and Pages; however, rather annoyingly it seems to be pulling my author avatar in instances where the post contains no media attachment (although they do have a featured image).
I tried to use your code snippet above, although I get:
Warning: Illegal string offset 'src' in /home/bnewtonc/public_html/blog/wp-content/plugins/jetpack/modules/widgets/top-posts.php on line 179
and;
Warning: Illegal string offset 'from' in /home/bnewtonc/public_html/blog/wp-content/plugins/jetpack/modules/widgets/top-posts.php on line 180
Do you know what might be causing this?
Thanks in advance for your time! ??
Ben.
Forgot to add, the URL is at my blog: https://blog.bnewton.co.uk
Forum: Plugins
In reply to: Shopping Cart Bulk Discount PricingHey Bozz, sure, the documentation and code can be found on the additional resources page ?? https://www.tipsandtricks-hq.com/ecommerce/wordpress-shopping-cart-additional-resources-322
I hope you find it useful ??
Forum: Plugins
In reply to: Shopping Cart Bulk Discount PricingI used WP Simple Shopping Cart and wrote a little JS to handle the discount. You can see a live example at https://www.wearepark.co.uk if you add something to your basket and click on your shopping cart. If anybody wishes to rip it out please feel free, or if you need to see the code give me a shout.