thoughtwell
Forum Replies Created
-
I’m glad you got it working. Hangups are frustrating, especially when under a deadline. Be sure to mark your ticket as resolved, and best of luck moving forward!
Thanks for getting back to me. I think I have it resolved for now. Not sure why it was doing that, but it may be because of the local dev environment I am using. Prior to the issue surfacing, I had just updated my local dev application and the update may have caused something to go awry (although my other site w/ the AB theme was still working fine) but it’s stable and working, now.
To resolve the issue, I deactivated the plugin, everything went back to working (except for the AB Blocks, obviously). I then deleted and reinstalled the plugin, flushed permalinks and everything seemed to go back to working and I haven’t experienced any further issues… it was just so strange how it was working fine one minute, then the next, it just kept doing this. I lost a little bit of the content in my AB blocks, but it wasn’t that huge of a deal since I wasn’t that far along. I had wp_debug turned active and wasn’t getting any errors, but next time (if it happens again; hopefully not) I’ll be sure to check the console log as I sometimes forget about that option. If it wasn’t as stable moving forward, I’d probably be afraid to use it, but this was just a one-off thing that I’m chalking up to that Local dev app update, so I think I’m in the clear… hopefully 😉
Thanks again for the help. I’m really enjoying use of the plugin and (unrelated here) the AB Theme. It’s made working with the new Gutenberg editor a lot more preferable to the classic editor for general posts and pages, although I still prefer a more form-like page structure for custom post type meta and such… but eventually, I’ll get to experimenting more w/ the Gutenberg features for that sort of content. I definitely appreciate the time spent working on these tools for the community!
If you can, open the page in Chrome and use the developer tools to check out the specific selector in question. This (I believe) is under the ‘view’ menu item. My guess is that the plugin stylesheet is overriding any similarly named classes from your theme as you could have a conflict as AB uses some very generalized class names. This can be viewed by looking at the panel that provides the properties for the related selector in question, usually on the right. You’ll need to select the element on the page with the pointer tool so the panel will provide the specifics for that item on the page. You can then see if those incorporate chained selectors and use a class or other selector from a parent element to increase the specificity of your edited style from your theme to override whatever styling the plugin is outputting. For more details, check out this link:
https://developer.mozilla.org/en-US/docs/Web/CSS/SpecificityBecause AB’s styles are called after the theme’s styles, the page is going to default to whatever properties AB is using for that class name. The easiest way to override is to use a chained selector and use CSS’s cascading properties to override the AB selector.
You would do this in your child theme’s styles.css file. Simply find where .right class is, then go in and right under it, use a parent element’s classname with the .right class and put in properties you want to use for that scenario.
For example, say the body element has a class of ‘x-theme’ or some other arbitrary selector class name or ID. You can then use
.x-theme .right {...}to override.If the selector using the
.rightclass has another class name used w/.right, you can just use that class directly prepended to the.rightclass. For example,.sidebar.right {...}.I do this all the time to override styles forced over my theme’s styles by plugins, auto-generated in the head, etc.
Forum: Fixing WordPress
In reply to: Text Widget missing codeYes, that’s it. Hmmm. I did try doing due-diligence and searching topics but nothing came up in the forum. Shortly thereafter, I found several blog posts from other devs discussing this issue.
No worries. I ended up just eliminating the widget area altogether by unhooking it in my theme and hard coding this into the functions file, then re-hooking back into the header. Probably for the best anyhow, as I don’t want a client fidgeting w/ this. Were this a theme for the theme market, it would probably be a bigger problem, but since it’s a custom theme for a client, I believe having it hard coded is going to be a better solution anyhow.
I’ll mark this as resolved, at least for my particular needs. Thanks!
Forum: Plugins
In reply to: [WooCommerce] Woocommerce product data with all tabs are disappearedHave you checked the screen options tab? An update could have done something to uncheck this, perhaps?
Forum: Plugins
In reply to: [WooCommerce] Product Thumbnails – Position Left and Display VerticallyOkay, I answered my own question… to change the product column number, just add a filter, like so (I actually found this example in the woocommerce docs after a lot of sifting through the template parts and searching the various hooks and filters):
https://docs.woocommerce.com/document/change-number-of-thumbnails-per-row-in-product-galleries/Once you change the column class to display just a single column, you can change the widths of the various containers and image classes and apply the necessary floats to get the vertical columns either right or left.
The easiest way to override default woocommerce classes is to apply a unique body class to your template pages either in the template files themselves or using conditional statements in your functions.php file, then use hierarchy/inheritance to add the styles necessary to change the default woocommerce styles (if those styles are already declared in the included woocommerce styles.) If they aren’t, then you can just use the class names as-is and add your style declarations to the various selectors.
- This reply was modified 9 years, 2 months ago by thoughtwell. Reason: clarification to the original poster's question
Forum: Plugins
In reply to: [WooCommerce] Product Thumbnails – Position Left and Display VerticallyI’ve figured out how to do this for the most part just using CSS (although I’m floating my thumbnails right) but one of the problems is the column count class in the template. I’m not sure how to change this.
I’m looking at the woocommerce_product_thumbnails and woocommerce_before_template_part action hooks to see where is implemented but I’m not having any luck. Basically, I just need to change the class from “thumbnails column-3” to “thumbnails column-1” and the rest I can take care of.
If anyone can point me in the right direction, I’d be grateful!
Forum: Plugins
In reply to: [Genesis Connect for WooCommerce] Move Product Archive TitleOkay, so instead of all of this, I ended up finding the
genesiswooc_product_archiveandgenesiswooc_content_productfunctions (thanks, hookr.io) in thetemplate-loader.phpfile within the plugin and copying those functions over to my template.I then removed the title and archive description output from both those, then renamed them and stuck the revised functions into my template page where the OG code went. Since this is where the title and description are declared and that bit was removed, there’s no need to remove the action responsible for this higher up in the template, so I deleted those.
Because I renamed the functions, I don’t have to worry about updates to the plugin effecting this, but I guess I will need to keep tabs on any major changes to woocommerce and adjust my code as needed down the road.
A simple idea of how to remove the title through a hook like I’m able to do w/ the description would have been ideal to do what I wanted to do, but since that information wasn’t forthcoming (I’m kind of a novice, here), this solution will seem to do unless someone else can fill me on how that title is hooked into the page, since as a filter, all I was able to do was return false, and I didn’t want to completely take the title away.
- This reply was modified 9 years, 2 months ago by thoughtwell. Reason: made easier to read
Sure, will do.
Okay, checked settings and they are consistent w/ your suggestion. I am also using get_the_powerpress_content(); as mentioned in my code snippet… I’ve actually used several variations of it as well as the do_shortcode(‘[power press]’); tag/function and still no luck. I looked deeper at my code and the irony is, in the CPT archive where I use WP_Query, it will work. Where it’s not working (the deeper-level taxonomy archive page) I’m actually NOT using a new Query since it’s using the default taxonomy loop… so I was incorrect in my explanation. But still, no luck.
While it would be nice if I can get it working so we can have the audio player sitting in tandem with our video presentations, in all honesty, I kind of perceive this as being redundant when there’s a video sitting right along next to it. Most likely, a user will opt to utilize the video vs. an audio feed in most cases when they’re on site viewing content. The audio content makes more sense to use when off-site, and for that, it would probably be more to podcast users’ preference to have them subscribe to the podcast feed, directly using whatever service they typically use to consume this type of content.
Therefore, until I (or someone in your camp or out on the internet trying to do the same) can figure it out, I’ll probably just include a modal popup that pulls up the subscription options, calling that page content from the subscription page. I can still include the latest podcast within a player in the featured block on the next-level up (CPT Archive where it works).
This seems like the most logical workaround without reinventing the wheel. However, if you come up w/ a reason why get_the_powerpress_content(); won’t work on a taxonomy loop and the issue gets resolved, perhaps we can introduce the audio player later. It’s a compromise, but the modal subscription option should do… at least for now. Unfortunately, as more of a front-end fellow, I don’t quite have the skill-set to dissect the plugin’s code and figure this out.
Thank you, Angelo. Any and all help is certainly appreciated.
I’m using the following (pretty much straight from the docs):
<?php if($episode_content){ ?> <div><fieldset class="episode-box"> <legend>Podcast Episode</legend> <php echo $episode_content; ?> </fieldset> </div> <?php } ?>the variable “$episode_content” is declared at the beginning of the while loop for posts via:
$episode_content = get_the_powerpress_content();Hey Angelo, thanks for getting back to me on this. It makes sense what you said about using them (podcasts) in the past… it’s likely that back before the complete overhauling of the site, the church was using the sermons under the standard feed… which is good to know, because the media director and myself were kind of wondering where all those were going to.
I’ll follow your suggestion and just use the options tick box to turn it off on those other screens–most of the folks contributing probably won’t go turn it back on anyhow… but I would welcome your feature update for those using PTPs vs. the standard feed, as it would completely remove that std. entry box.
As I play around w/ the plugin a bit more, it’s beginning to make more sense… like I had noticed that the PTP editor carries over the same meta fields as the general editor, but it’s completely separate. This was a little confusing at first until I realized that it’s pretty much its own thing and the ‘standard’ feed is completely separate.
Thanks again for the fast response. I’ll look at future update notes to see if that feature becomes available if you have a chance to bake that in. As far as I’ve come across, this plugin is definitely the most full featured and seems to have the best workability towards integrating more on a theme level than any of the other plugins and services we’ve vetted.
AWESOME! That worked even easier than I had imagined! Thanks for getting back to me. Made my day!
Forum: Fixing WordPress
In reply to: "Already Installed" after upgrade to 4.6I too have had this issue. I keep getting looped back to the error message and I don’t want to overwrite or clear the database because doing so would lose valuable posts. I’m not sure what to do. Did you ever find a fix for this?