ckbrewer15
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Hiding version and tempalte nameHave you tried a plugin such as this:
https://www.ads-software.com/plugins/wp-hide-security-enhancer/
Forum: Fixing WordPress
In reply to: nstallation failed some pluginsDid you get an email in your inbox? If so, what did it say?
Forum: Fixing WordPress
In reply to: Updated to be able to run Php 7.1 after that just lots of problemsI would first try and narrow it down to see if it is plugin that is breaking. If possible I would disable all plugins and then activate one at a time. If you can’t access the plugins page because of the error, you can rename each plugin directory in your /wp-content/plugins/ directory by renaming each one “plugin_name-old”. Rename them all, then one at a time activate them again and check the site for the 503 error. If this does not help, try activating a default theme like Twenty Twenty or Twenty Nineteen to see if this is theme related. Other than that, I would contact your hosting company to see if they can find the exact issue or maybe try an even newer version of PHP.
Forum: Fixing WordPress
In reply to: Issue with WordPress 5.3 udpdateHave you asked the theme developer?
Forum: Fixing WordPress
In reply to: problem by pluginI would suggest that you contact WPBakery if this is a specific problem with them.
Forum: Fixing WordPress
In reply to: errore 5ooSto utilizzando Google Translate. Scusa se questo non ha senso. Sembra che tu abbia rimosso o rotto qualcosa nel codice se non è stato modificato nient’altro. Potrebbe essere un problema sul tuo server. Se hai cPanel, controlla i log degli errori o contatta il tuo host web per cercare errori su single.php
Forum: Fixing WordPress
In reply to: Responsive menu toggle for mobile not working on some pagesYour front page is not using the latest jQuery:
https://foodandwaterfirst.com/FAWFWP/wp-includes/js/jquery/jquery.js?ver=1.12.4
Forum: Developing with WordPress
In reply to: Adding a hyperlinkAn image typically only has one link wrapped around it using the “a href” html tag. To accomplish what you want would require some advanced HTML/CSS skills such as placing a transparent div tag above the image itself that matches the size of the text you want to be linked and then positioning it perfectly which would be difficult since the image size changes based on the width of the device browse.
I would recommend simply placing a link under the image such as “Visit me on Instagram” which links to your Instagram profile or some other simple method.
The question you asked is not a WordPress related question but an HTML/CSS question. You may find more or better help over at StackOverflow.
Good luck.
- This reply was modified 7 years, 4 months ago by ckbrewer15.
Forum: Developing with WordPress
In reply to: Split the posts loopHave you thought about something like this where you just run a simple loop counter?
We set var $loop_counter to 0 and every time the loop goes through a new post it increments $loop_counter by 1. When it reaches 5, it displays an ad and resets the counter back to 0. To display the ad we just organize them into a directory in your themes folder called “ads” and then each ad file would be called ad-1.php, ad-2.php, ad-3.php etc…
Then we just call one of the ads randomly like this:
get_template_part(‘ads/ad-‘ . rand(1,5))I updated your code below to show what I mean, it is untested, you may need to make changes. Also, if you don’t want random ads, you could just put a second counter that counts how many times an ad was shown which would give you a sequence in order.
get_header(); ?> <div id="primary" class="content-area col-md-9"> <main id="main" class="site-main-for-travel"> <?php echo '<h2 class="display page-title">';single_cat_title();echo '</h2>'; the_archive_description( '<div class="archive-description">', '</div>' ); ?> <div class="row"> <?php $current_cat = get_the_category(); $cat_ID = $current_cat[0]->cat_ID; $loop_counter = 0; $loop = new WP_Query(array( 'cat' => $cat_ID, 'post_type' => 'post', 'posts_per_page' => 50,//posts per page 'orderby' => 'date', 'order' => 'DESC' ));?> <?php if ( $loop->have_posts() ) : while ( $loop->have_posts() ) : $loop->the_post(); ?> <?php if($loop_counter >= 5){ get_template_part('ads/ad-' . rand(1,5)); $loop_counter = 0; } else { $loop_counter++; } ?> <article id="post-<?php the_ID(); ?>" <?php post_class('col-md-6'); ?>> <?php if ( has_post_thumbnail() ) : ?> <a class="post-teaser" href="<?php the_permalink() ?>" title="<?php the_title(); ?>"> <div class="thumbnail-block"><?php the_post_thumbnail('regular-post-thumbnail'); ?></div> <div class="title-block"><span class="h3 title-for-widget"><?php the_title(); ?></span></div> </a> <?php endif; ?> </article> <?php endwhile; ?> <?php endif; ?> <?php wp_reset_query();?> </div> </main><!-- #main --> </div><!-- #primary --> <?php get_sidebar(); get_footer();
Forum: Developing with WordPress
In reply to: Split the posts loopSorry, can you please describe a little more detail about what you are trying to achieve? You want to insert an ad every X amount of posts? You want to show an ad where?
Thanks
Chris
Forum: Fixing WordPress
In reply to: Setting WP Address and Site Address Grayed OutI am not sure but one solution maybe is to give a plugin a try to make your life a little easier:
https://www.ads-software.com/plugins/https-redirection/
Maybe that will work. Just an idea.
Forum: Developing with WordPress
In reply to: Adding a hyperlinkI see an image that says “Share your recipes” and it currently links to: https://www.instagram.com/sewlicioushomedecor/
Have you solved this?
Forum: Fixing WordPress
In reply to: Failed URL change, unable to login due to cookiesWe have all had days like that. Keep at it. You will figure it out.
Forum: Fixing WordPress
In reply to: Responsive menu toggle for mobile not working on some pagesTo create the functionality to open/close a menu, you can use JavaScript. I see jQuery is installed on your website. I did not come across any code in place to do this for you.
If you have no experience with JavaScript files, please install a plugin such as this one that will allow you to add custom CSS and JavaScript easily:
https://en-ca.www.ads-software.com/plugins/custom-css-js/
Create a new JS file and for the options select to load in the footer and on the front end. Add this JavaScript:
$(document).ready(function() {
$(‘#navigation’).click(function() {
$(‘#menu-main-menu’).toggle();
});
});Basically what this tells the browser to do is to wait for the page to load and when ready, listen to the navigation button for any clicks. If a click happens, toggle the menu items on or off.
I see that the website is using a very old version of jQuery, the code I provided may not work properly. You are using version 1.12.4 whereas the current version is 3.2.1 as of today. If you require further assistance with any of this, I would recommend contacting a professional web developer such as myself, we are easy to find.
You may also need to style the mobile menu after it opens. It’s possible the previous owner did not do so. When I tested it, I did not see any mobile-friendly styles for menu items.
Good luck.
Forum: Fixing WordPress
In reply to: Update Modified date when scheduled posts get publishedJust out of curiosity what would be the reason the modified date needs to be updated to the same as the published date? Is there a specific reason? Since the post is not actually modified at the time of going live, then it would not update. That is how it is supposed to work unless you have a specific reason to change this functionality however you posted in “fixing wordpress” so I am assuming you think otherwise?