Calvary Tucson
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Problem in FirefoxIt did work!! Thank you so much ??
Forum: Fixing WordPress
In reply to: Problem in Firefoxoh, that’s a good idea, using the conditional logic to add the shortcode instead. I’ll try that and see if it works ??
I also tried the debugging and found one error, which I fixed, but it didn’t seem to help.
Thank you so much for the suggestions!! They are very helpful.
Forum: Fixing WordPress
In reply to: Different header in firefoxSo, after implementing another countdown, it looks like it is actually not the plugin itself causing the issue. It still shows up blank on firefox :/
Forum: Fixing WordPress
In reply to: Different header in firefoxTor-Bjorn Fjellner, thank you for replying!
I actually didn’t think it would be the plugin itself causing the problem until you asked that (it didn’t cause any other problems on our site until this), but I just tested the same cose using another shortcode and it works fine on firefox.
It does seem to be the plugin that’s causing the problem.
However, I haven’t been able to find another countdown plugin that allows me countdown to 3 different events every week, and then have a “count-up” feature while the events are running (this one links to a google calendar with events scheduled every week). With other countdown plugins I looked at all you could do was set a date and time to countdown to and let it go, you couldn’t schedule it to countdown to several things every week.
Do you know of any other plugins that can do that? Thank you again for your help.
Forum: Fixing WordPress
In reply to: Different header in firefoxHi Kjodle! Thank you for replying to my question.
The reason I’m trying to display a different header in firefox is that a certain piece of the code in my header is causing the body of my website to be blank, but only in firefox.
Here’s all the code in the header of my site:
<?php /** * The Header for our theme * * Displays all of the <head> section and everything up till <div id="main"> * * @since Yaga 1.0 */ ?> <!DOCTYPE html> <html <?php language_attributes(); ?> class="<?php echo esc_attr( apply_filters( 'yaga_html_classes', 'no-js mobile-menu-closed' ) ); ?>"> <?php ?> <head> <script src="https://use.fontawesome.com/d450b61818.js"></script> <meta charset="<?php bloginfo( 'charset' ); ?>"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="profile" href="https://gmpg.org/xfn/11"> <?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"> <?php endif; ?> <?php wp_head(); ?> <?php echo do_shortcode( "[hmenu id=2]" ); ?> <div class="top-bar"> <div class="top-countdown"> <a href="https://calvarytucson.com/teaching-archives/live/"> <button class="top-countdown-button"><div class="top-countdown-button-inner"><span class="firefox-live"><?php echo do_shortcode( '[widget id="smartcountdown-2"]' ); ?></span></div></button> </a> </div> <div class="top-icons"> <a href="https://twitter.com/calvarytucson" target="_blank"> <button class="top-icons-button"><div class="top-icons-button-inner"><img src="https://calvarytucson.com/wp-content/uploads/2017/07/social-003_twitter-2.png" alt="Twitter"></div></button> </a> </div> <div class="top-icons"> <a href="https://www.facebook.com/calvarychapeltucson" target="_blank"> <button class="top-icons-button"><div class="top-icons-button-inner"><img src="https://calvarytucson.com/wp-content/uploads/2017/07/social-006_facebook-2.png" alt="Facebook"></div></button> </a> </div> <div class="top-icons"> <a href="https://www.instagram.com/calvarytucson/?hl=en" target="_blank"> <button class="top-icons-button"><div class="top-icons-button-inner"><img src="https://calvarytucson.com/wp-content/uploads/2017/07/social-038_instagram-2.png" alt="Instagram"></div></button> </a> </div> </div> </head> <body id="body" <?php body_class(); ?>> <?php do_action( 'yaga_preloader' ); do_action( 'yaga_display_site_header' ); ?> <div id="page" class="hfeed site"> <!-- Start the main container --> <main id="main" class="site-main cf">
and it’s line 28 in that code that’s causing the problem; specifically this segment:
<?php echo do_shortcode( '[widget id="smartcountdown-2"]' ); ?>
If I take that out, the body of my site will appear again in firefox, and when I put it back in, it disappears.
I haven’t been able to find a way get that shortcode to display without that php code in the header.
Do you know what I might be able to do? Thank you again!
Forum: Hacks
In reply to: Can’t get jQuery to loadit worked!!! thank you so much! ??
Forum: Hacks
In reply to: sidebar only on certain archive pagesooh i see. Ok, I still have support with the theme so I’ll see if they can help me.
Thank you again for your help!
Forum: Hacks
In reply to: sidebar only on certain archive pagesHi bcworkz, sorry to open this up again, but i’m having a little bit of trouble.
So, whenever I add anything to my sidebar it automatically resizes the archive pages and post pages to fit the sidebar in, even when i’ve removed the
get_sidebar()
from the archive and single php pages.I’ve tried everything i can think of, and everything I’ve found on google, to resize the archive pages that I don’t want to display a sidebar back to full width, but no luck.
After I figure out how to resize posts and archive pages, i’m going to make custom php files to keep the sidebar for the archives and posts i do want to have the sidebar in.
here’s an archive page that i can’t get to go full width:
https://calvarytucson.wpengine.com/teachings/For the posts, I wrapped all of the content in a div and set that to 151.89% width, which is sort of a work around. Applying that to #content didn’t resize it fully, instead it pushed it to the right after it hit a certain width.
here’s a page with that:
https://calvarytucson.wpengine.com/teachings/life-as-god-intended/here’s the archive page code before I took out the sidebar:
<?php /** * The template for displaying Archive pages * * Used to display archive-type pages if nothing more specific matches a query. * * * @since Yaga 1.0.0 */ $yaga_page = new Yaga_View(); get_header(); ?> <div id="primary" class="content-area primary-content-area"> <?php $yaga_page->header(); $yaga_page->start_container(); if ( have_posts() ) : $yaga_page->grid_container_starts(); do_action( 'yaga_before_archive_loop' ); while ( have_posts() ) : the_post(); get_template_part( 'content', 'grid' ); endwhile; do_action( 'yaga_after_archive_loop' ); $yaga_page->grid_container_ends(); else : get_template_part( 'content', 'none' ); endif; $yaga_page->get_sidebar(); $yaga_page->end_container(); ?> </div><!-- #primary --> <?php get_footer();
and after I removed the get_sidebar:
<?php /** * The template for displaying Archive pages * * Used to display archive-type pages if nothing more specific matches a query. * * * @since Yaga 1.0.0 */ $yaga_page = new Yaga_View(); get_header(); ?> <div id="primary" class="content-area primary-content-area"> <?php $yaga_page->header(); $yaga_page->start_container(); if ( have_posts() ) : $yaga_page->grid_container_starts(); do_action( 'yaga_before_archive_loop' ); while ( have_posts() ) : the_post(); get_template_part( 'content', 'grid' ); endwhile; do_action( 'yaga_after_archive_loop' ); $yaga_page->grid_container_ends(); else : get_template_part( 'content', 'none' ); endif; $yaga_page->end_container(); ?> </div><!-- #primary --> <?php get_footer();
Here’s the single page before I removed the sidebar:
<?php /** * The Template for displaying single posts, also the default template for displaying custom post types * * @since Yaga 1.0 */ $yaga_post = new Yaga_Single_View(); get_header(); ?> <div id="primary" class="content-area primary-content-area"> <div id="content" class="site-content cf" role="main"> <?php $yaga_post->header(); $yaga_post->start_container(); while ( have_posts() ) : the_post(); $yaga_post->content(); endwhile; $yaga_post->get_sidebar(); $yaga_post->end_container();?> </div><!-- #content --> </div><!-- #primary --> <?php get_footer(); ?>
and with the sidebar removed:
<?php /** * The Template for displaying single posts, also the default template for displaying custom post types * * @since Yaga 1.0 */ $yaga_post = new Yaga_Single_View(); get_header(); ?> <div id="primary" class="content-area primary-content-area"> <div id="content" class="site-content cf" role="main"> <?php $yaga_post->header(); $yaga_post->start_container(); while ( have_posts() ) : the_post(); $yaga_post->content(); endwhile; $yaga_post->get_sidebar(); $yaga_post->end_container();?> </div><!-- #content --> </div><!-- #primary --> <?php get_footer(); ?>
thank you again for all your help!
Forum: Hacks
In reply to: sidebar only on certain archive pagesbcworkz, thank you so much!
I didn’t know that I could add additional files to my child theme, that makes it much easier. And thank you for the detail on how to make the additional files. I think that will work perfectly for what i want to do.
Thank you again!
Forum: Hacks
In reply to: get_the_excerpt if is_category not workingit worked! thank you so much ??
Forum: Hacks
In reply to: the_post action not workingoh ok, thank you so much! I filtered the_content for single posts and it seems to work just how I wanted.
add_filter( 'the_content', 'teaching_part_one' ); function teaching_part_one($content){ if( is_singular('teachings') ) { $content .= '<p>custom code</p>'; } return $content; }
thank you again!
ChrisForum: Hacks
In reply to: Form on backend of post for placing text inside codeok great, thank you so much, that helps a lot!
Forum: Plugins
In reply to: [Sermon Manager] plugin messes with my themeoh no, actually, I don’t think I am able to display the way I wanted. Is there a way I can display all the messages under a certain category (certain preacher, or certain series, or certain book) to display as a grid of images, instead of a list?
thank you!
Forum: Plugins
In reply to: [Sermon Manager] plugin messes with my themeHello!
Here’s the page that’s having that issue: https://calvary2sun.com/And I think I understand what your saying. I found a different way of displaying that I think I like better anyway though ?? The main thing is the front page background video issue.
thank you!
Chris