Forum Replies Created
-
AuthorPosts
-
No change. Rewrote the code to reference the file at its new location
require_once( get_stylesheet_directory() . '/class-framework-widgets.php' );
but the error persisted. (At first we left off the leading “/” in the location and it didn’t work at all, so we added that.) It is definitely still referencing the child’s class-framework-widgets.php because we can still see the edited error message.
(Also we tried removing
if ( ! defined( 'AVIA_FW' ) ) exit( 'No direct script access allowed' );
from the class-framework-widgets.php again, but it was still broken [blank–no error message].)Before we go there, can we please try this one more time?
I edited the actual class-framework-widgets.php file in Enfold parent, and I have verified that this works to exclude categories:
avia_get_post_list('cat=-14,-18&orderby=comment_count&posts_per_page='.$posts);
I also know that this code correctly accesses the class-framework-widgets.php file in Enfold-child theme
require_once( get_stylesheet_directory() . '/framework/php/class-framework-widgets.php' );
because I edited the error “No direct script access allowed” in that file, and the error displayed as I edited it.
So the only problem that remains is that, for some reason, the phrase
( ! defined('AVIA_FW'))
is being triggered, as “AVIA_FW” is not getting defined by class-framework-widgets.php in the child theme. (I know you told me to remove that line, but it doesn’t fix the problem–it only removes the error message.)
So my question is, how can I define “AVIA_FW” in my child theme (or is it not that simple)?Didn’t work. :(
Still works fine after the first change, but once I add the snippet to function.php, it breaks the site–no text this time, just a completely blank page. (I recovered the site again.)Yes, that is at the top of my class-framework-widget.php file in my child theme.
I did recover the site, the way you just said.
I followed the instructions, but it broke the site. All I get is a blank page with this text: “No direct script access allowed”
What could I be doing wrong?Thanks Jordan.
Where in that line do I specify which category to exclude? Do I replace the “4” in “cat=-4” with the category ID, or something else?
Also, I duplicated the “framework > php > class-framework-widgets.php” file and location in my child theme, and am making my edits there. Is that correct?Thanks for the response. I found the line, but I don’t really know how to write in the modification to the query. Could you please provide me with the modified code (and also notate where I will need to put in any post-specific info like the ID number)?
Also, I am running my site with a child theme–can I make this change in the child theme? If so, where?
Thanks in advance.Thanks @mensmaximus, and attn: Enfold developers.
We just began development on our webstore today. We are running the most recent versions of WordPress, Enfold, and WooCommerce. Working in Firefox, we had this same blurry image issue on the product page. Verified the problem also existed in Internet Explorer 11 and iOS 9 (Safari). The problem did not occur in Chrome.
We used the fix originally provided by @mensmaximus in https://kriesi.at/support/topic/enfold-theme-woocommerce-product-images-not-showing-as-of-4-4-17/page/3/#post-773385, just to fix the image problem, and it worked perfectly.
Looking forward to Enfold being fully compatible again.Well, I’m not really certain how to say it better, but I was wondering how the widget decides what post is “popular” and what isn’t? Like if it was based on hits or something else. But I think I figured it out: it seems to be choosing whichever posts have the most comments on them. :)
While we’re on the subject, though, is there any way to exclude a post from the “Most Popular” list in the Enfold Combo Widget?With all due respect, I don’t really understand why you guys keep asking to see or log in to my website. I’m asking about your theme–isn’t my site the same as your site, from a coding perspective?
Anyway, I figured it out myself. Inserted the following code into my Quick CSS, and it works beautifully:.widget_archive ul { columns: 2; -webkit-columns: 2; -moz-columns: 2; }
Here’s the result: http://prntscr.com/f78ty6
Problem solved! The first snippet works–I just had an error elsewhere in my Quick CSS.
Thanks for the quick response, and sorry for the false alarm!Nevermind. I just figured out the font size on posts and pages. :)
Perfect! Thanks a bunch. :)
While we’re at it, is there any way to increase the font size in all posts and pages on the site as well? I know how to do it on a single post or page, but I’m looking to make a blanket change.
Thanks.The post titles in “Recent Posts” and “Recent Comments” are in italics. I want to remove the italics and increase the font size. The theme came this way.
If you still need me to post a link, please let me know.
Thank you. -
AuthorPosts