Micah Wood
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple Website Redirect] I cant find EEUUI think you may have this confused with another plugin? The Simple Website Redirect plugin doesn’t have a list of countries.
Forum: Plugins
In reply to: [Simple Website Redirect] Cant disable redirectionOnce you’ve enabled a permanent redirect, your browser will cache it. This is why the redirect still happens even after removing the plugin. See https://wpscholar.com/blog/browser-caching-301-redirects/
Forum: Plugins
In reply to: [Simple Website Redirect] Support Redirects without wwwI’m running the plugin to redirect to a site without
www
in the domain and it works just fine.There is a condition in the plugin that will prevent you from redirecting to the same domain as your current website. What site is the plugin installed on and where are you trying to redirect to?
Forum: Plugins
In reply to: [Image Refresh] image backgroundAh, then you’ll need to place this just inside the
<div id="footer-widgets">
tag (which is probably located in theincludes/partials/footer/main-widgets.php
file):<?php echo do_shortcode('[mpress_image_refresh attachment=”5725, 5727″ class="footer-image"]'); ?>
Then add this to your
Additional CSS
section in the theme customizer (or your theme’s style.css file):#footer-widgets { position: relative; } #footer-widgets figure { margin: 0; position: absolute; top: 0; right: 0; bottom: 0; left: 0; } #footer widgets .widget { background: #000; padding: 1em; } .footer-image { width: 100%; height: 100%; object-fit: cover; }
That should make it look like what you want.
Forum: Plugins
In reply to: [Image Refresh] image backgroundI’m assuming you want to show the image full-width at the top of the footer?
Move the shortcode down so it is right before the
<?php get_template_part...
code.Add a class attribute to the shortcode, like so:
[mpress_image_refresh attachment=”5725, 5727″ class="footer-image"]
In your CSS, add these rules:
`
#footer-outer figure {
margin: 0;
}.footer-image {
width: 100%;
margin: 0 0 -8px 0;
}
`
Forum: Plugins
In reply to: [Image Refresh] image background@greghp So here is what you should do:
1. Remove the
<?php echo do_shortcode(‘[mpress_image_refresh attachment=”5725, 5727″]’); ?>
code.
2. Move that line of code into one of the following locations:
– Before the<div id="footer-outer"
– Before the<?php
tag containing theget_template_part
references.- This reply was modified 5 years, 8 months ago by Micah Wood.
- This reply was modified 5 years, 8 months ago by Micah Wood.
- This reply was modified 5 years, 8 months ago by Micah Wood.
Forum: Plugins
In reply to: [Image Refresh] image background@greghp It looks like you’ve got some invalid HTML markup.
Take a look at #23 here: https://validator.w3.org/nu/?doc=https%3A%2F%2Fsebastien-dev-rcconcept.pf2.wpserveur.net%2Fen%2Fen-rc-concept%2F
The opening footer div doesn’t have a
>
symbol before the figure tag from the shortcode is output. This could be because the code to output the shortcode was placed in the opening tag for the footer.Forum: Plugins
In reply to: [Image Refresh] image background@greghp I’m not entirely sure what your specific use case is. Can you point me to a URL where things are breaking?
Forum: Plugins
In reply to: [Image Refresh] image background@greghp Yes, that is the way to add the shortcode to a theme template.
As far as using the image as a background image, that isn’t an option and likely won’t be in the future. However, you may find this article helpful: https://css-tricks.com/on-object-fit-and-object-position/
Forum: Plugins
In reply to: [Simple Website Redirect] redirect all to rootI’ve just released version 1.1, which adds the feature you requested. Enjoy!
Forum: Plugins
In reply to: [Simple Website Redirect] redirect all to rootAt the moment, that isn’t possible using the plugin in its current state. However, I should be able to add that feature easily enough. Let me see what I can do.
Forum: Plugins
In reply to: [Simple Website Redirect] Exclude a URL@leuname7 While it is possible, I don’t foresee being able to add anything like that soon.
Forum: Plugins
In reply to: [Random Post on Refresh] Random post not refreshing@theldron It sounds like what is happening is that you have some sort of caching that is preventing the markup from changing. Most likely, you have a caching plugin installed and active. The easiest way to fix this would be to prevent caching of the specific page where you are using this shortcode.
That said, how you would go about doing that would depend on what caching plugin is active. It is also possible you aren’t using a caching plugin and some other caching is in effect (perhaps handled by your web host).
Forum: Plugins
In reply to: [Blank Slate] Images not responsiveGlad you got it working!
Forum: Plugins
In reply to: [Blank Slate] Images not responsive@janellapplegate Hmm… I’m sorry you are having trouble. I added that rule via Chrome dev tools to that very page (https://novationchurch.org/test-page/) and it worked. Perhaps try making the rule more specific?
body.blank-slate img { max-width: 100%; }
Or are you trying to get it to work in a different context?