Forum Replies Created
-
AuthorPosts
-
Thanks for the reply. I just needed to regenerate all of my thumbnails and now the images look great in that section. This is resolved.
Hi Ismael. Thanks for the reply. Sorry if I wasn’t clear in my initial email. Please note that we do not want the input fields to be 100% width. I just went back and edited the Private Data that I had provided to you in my initial post, which should hopefully better explain the issue.
The easiest way for you to see the problem is to go to the two pages that I referenced in the Private Data section and then switch back and forth between the Enfold theme and the Fresh News theme. That will clearly show you the problem. The Fresh News theme is displaying the pages properly, but the Enfold theme is making the pages look bad (due to CSS conflicts).
- This reply was modified 9 years, 4 months ago by ACNLatitudes.
Hi Ismael. Using the page ID technique worked great. The conflicting code appears to be resolved now. Thanks so much!
Never mind. I was able to resolve the issue by using the following code in my functions.php file:
/*———————————————————————————–*/
/* Makes a Special Sized Image for MailChimp RSS Emails*/
/*———————————————————————————–*/
if ( function_exists( ‘add_image_size’ ) ) {
add_image_size( ‘mailchimp_featured’, 564, 9999); //564 pixels wide and unlimited height
}/*———————————————————————————–*/
/* Puts Featured Image into RSS Feed (Enfold Theme)*/
/*———————————————————————————–*/function avia_add_images_to_rss_feed($content)
{
global $post;
if ( has_post_thumbnail( $post->ID ) )
{
$content = get_the_post_thumbnail( $post->ID, ‘mailchimp_featured’, array( ‘style’ => ‘display: block;’ ) ) . ‘<br/>’ . $content;
}
return $content;
}add_filter(‘the_excerpt_rss’, ‘avia_add_images_to_rss_feed’);
add_filter(‘the_content_feed’, ‘avia_add_images_to_rss_feed’);OK. I included a link to the RSS feed in the private content area. Please note that I would like to keep the images on the actual Enfold WP site in large format, so I would prefer not to upload them at a smaller width. The only place where I want the smaller width images is within the RSS feed itself.
Please advise.
Hi Yigit. Thanks. However the site is still stretched out on the home page and on all the other areas of the Enfold theme. Please try removing the code that you put in and then hit refresh on the home page so you can see what I mean. Please advise.
Hi Elliot. OK. I have provided a few links that show the category on the post and have also provided the category name in the Private Content area. I also provided a temporary login if needed. Thanks!
Thanks that fixes the problem with the width of the OptimizePress pages, but I just noticed that it messes up the layout of our home page (it makes our home page go full width, which it is not supposed to do).
OptimizePress suggested using this code, which is similar to what you provided, but it doesn’t seem to fix the issue on the page:
@media only screen and (min-width: 960px) {body.op-plugin .container { width: 100%; }}
Is there a modified version of that CSS code that can work instead?
Thanks!
- This reply was modified 9 years, 4 months ago by ACNLatitudes.
Hi Andy,
I added the login credentials. Feel free to activate the Enfold Child theme and then go to that page again to see the issue. When you are done, please change the theme back to the Fresh News theme.
Thanks!
Hi Elliott,
Thanks for the reply. I would effectively like to hide the specific category from showing up ANYWHERE in the theme (breadcrumbs, post meta, etc.). Please advise.
Thanks!
Hello. Thanks for providing this code. I will try it out and let you know if I have any issues.
On a related note, will this code also prevent the category from being shown directly below the title of the post (the area where it shows all of the categories that are associated with the post? If not, is there some additional code that will be needed to hide the category from that area as well?
Thanks!
June 21, 2015 at 4:19 am in reply to: Problem Changing Size of Featured Image in Blog Post via Child Theme #462274Thanks. That worked great!
June 18, 2015 at 5:23 pm in reply to: Problem Changing Size of Featured Image in Blog Post via Child Theme #461466Thanks for the reply. With all due respect, my question is asking about a specific issue that I am experiencing when using the child functionality of the Enfold theme. I appreciate the suggestion of using a plugin, but I shouldn’t need to use a plugin for something as simple as changing the featured image size in a theme that is as flexible as Enfold.
Let me explain once more what the issue is. Changing the image size in the parent theme functions.php file changes the featured image size in my blog posts (that’s a good thing). However, changing it in the child theme’s functions.php file DOES NOT change the image size in my blog posts (that is a bad thing).
Can you please simply address my original question as to why the image size is not being updated when that same change is being made to my child theme?
Thanks
June 17, 2015 at 1:55 am in reply to: Problem Changing Size of Featured Image in Blog Post via Child Theme #460511Thanks for the suggestion, but it really doesn’t answer my question and I have never needed to use a plugin to change the size of my featured images on any other theme I have ever used in the past. Perhaps you misunderstood my question.
The functions.php file in enfold has image dimensions (as noted here: https://kriesi.at/support/topic/enfold-image-sizes/). I am able to configure those sizes in the main functions.php file and have the changes reflected on the main website. However, I am using a child theme, so I would prefer to make those changes in the child theme’s functions.php file. if I copy that specific code to my child theme’s functions.php file (and then edit from within there), it does not reflect the changes that I made when I look at the website. Why isn’t it working when done from the child theme’s functions.php file (but it works when making the changes to the main theme’s functions.php file)?
Please advise.
Awesome. Thanks so much! Looks great!
Hi Josue – Thanks for putting in this revised snippet. It looks great now on the tag and category pages. The only problem is that that snippet prevents you from being able to view the actual article! When you click on an article, you just see the excerpt and the read more link. There is no way to read the actual article anymore. Please advise. Thanks!
This reply has been marked as private.Hello. I tried the revised code, but it still shows the full blog posts when viewing the category archive pages and the tag pages. Please advise.
Hello. I just inserted this code and it worked great for making the posts only show the excerpt on the home page (as opposed to the full text). However, when I go to my category pages (mysite.com/categories/category-name) or tag pages (mysite.com/tag/tag-name), it is showing the full posts (not the excerpts like on the home page.
What tweaks would need to be made to that code to make it show the excerpt on all of the areas (Home page, Blog, Categories, and Tags)?
Thanks!
OK. Thanks, I’ll try that out!
-
AuthorPosts