gitika18
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [GeneratePress] Want the site tagline below the logoTom, thanks for your reply. I tried to add the php code but I can’t find the :// Site and tagline anywhere in the ThemeFunctions/functions.php. I am using the child theme however, I don’t see anything in style.css as well as functions.php.
There is only this code in ThemeFunctions which I think I added a few months ago.
“<?php add_action( ‘generate_after_entry_header’, ‘generate_recipe_image’ );
function generate_recipe_image()
{if ( !has_post_thumbnail() )
return;if ( ‘recipe’ == get_post_type() && !is_single() ) {
?>
<div class=”post-image”>
” title=”<?php the_title(); ?>”><?php the_post_thumbnail(); ?>
</div>
<?php
}
}
/**
* Generate child theme functions and definitions
*
* @package Generate
*/
Thanks.Thanks! Sounds like I’ll have to give up a lot for this one plugin ??
One more thing, if I understand right, I don’t have to copy any file from the generate press folder to the child theme if I’m not making any changes to them. And even if those directories look blank in the child theme, I’ll be getting all your updates? right?Yes, I thought so too. But the problem wasn’t that big. I just had to drag and drop them back to their previous locations. It is back to normal now.
One more thing, I don’t see any theme’s inc/template-tags.php file and any codes in the function.php and style.css files except /*some statements*/. I was recommended to add some codes following codes to make my recipe posts act ac regular posts, but now I don’t know where should I add those-
Where do I add them now ??For the categories and author try editing your theme’s inc/template-tags.php file.
On line 227 you have
if ( ‘post’ !== get_post_type() )
Change this to
if ( ‘post’ !== get_post_type() && ‘recipe’ !== get_post_type() )In your theme’s content.php file on line 17 you have
`<?php if ( ‘post’ == get_post_type() ) : ?>
Change this to
<?php if ( ‘post’ == get_post_type() || ‘recipe’ == get_post_type() ) : ?>And basically the same thing on line 47:
<?php if ( ‘post’ == get_post_type() ) : // Hide category and tag text for pages on Search ?>Thanks
Yes, I just downloaded the zipfile from the link you gave, installed and activated.
Earlier I had SM icons in the header, which moved to the footer.
Any widgets that I had in footer, disappeared from there.
Widgets from the right sidebar either changed location or disappeared from there.Although they all went back to the available widgets but preserved the content/links. So I just had to drag and drop them back to their previous locations.
Forum: Plugins
In reply to: [WP Ultimate Recipe] Recipe doesn't show up when I'm logged outThanks! Works perfectly ??
Forum: Plugins
In reply to: [WP Ultimate Recipe] Recipe doesn't show up when I'm logged outHi Brecht, here is the link- https://www.plantbasedhealthy.com
The top post’s image is the problem and the image below (previous post) is how it is suppose to look like left alignment wise. I know the image sizes are slightly different but I just wanted the top image to be slightly on left.
Thanks.
Hi, I wasn’t active on my site for a while. But today I installed the child theme and added the code I wanted for the image and it works. The widgets, menu, footer and the header did get messed up and did not change to the earlier settings even after importing the files that I exported and saved before install.
Did I miss something? was I suppose to do anything else other than just download the child theme in the link above, install and activate?
I just saw another thread in your forum which talked about importing and some coding stuff in relation to child theme- https://www.ads-software.com/support/topic/child-theme-121?replies=11
I did not do anything, just activated the zipfile you gave. I had to fix the widget, menu, header and footer though. But it looks OK now.
I don’t see any codes in the function.php and style.css files except /*some statements*/. Again, what did I miss? Did I need to import codes from the parent theme I was using before?
Thanks.
Forum: Plugins
In reply to: [WP Ultimate Recipe] Recipe doesn't show up when I'm logged outHey, i hadn’t worked on the site for a while. I today added the code to display the image and it works perfectly ?? However, the image does not align left under the title like other images in the previous posts. Can you please tell how to change the alignment?
I want it slightly left so that the left side of the image and the beginning of the post’s titles align.
Thanks for the code again!Thank you for clarifying about the code and other ques.! But, I don’t see any screenshots here ??
Yes, It started to work a while ago by itself. Thanks for the like ?? even if it was to test ?? ??
Forum: Plugins
In reply to: [WP Ultimate Recipe] Recipe doesn't show up when I'm logged outThanks for the code! Can you please tell, where exactly I add this code in the functions.php file. I mean can I add it anywhere in the file after one line of code ends? ??
I better learn a little bit of coding stuff!! feel so dumb :O
Thanks.
Forum: Plugins
In reply to: [WP Ultimate Recipe] Sharing account and post sharingActually, along with the post image, it is showing the image of one of the advertisements on the right side bar which is not even a part of the post. It is only showing with this particular recipe which I posted with WP plugin. That’s why I asked in this forum. I don’t see any reason why this should happen. Very strange! Anyways, I’ll see if I can fix it or if it persists in next post.
Thanks!
Thanks for the codes! Will try those and see. However, I don’t know what source editor and visual editor are, I just see editor.
Also, just to make sure, I add- ‘recipe’ == get_post_type() ) : ?> on the line 47? Where exactly? and preceded/followed by some syntax?
I do not have much understanding of coding etc. so sorry if it sounds dumb ??
Just to make sure, you mean by adding these codes, the recipe posts will be treated like rest of the posts for author and category and will accept the theme features/customization for author and category in the future as well?
Am I right?
Thank you very much for all your help!
Forum: Plugins
In reply to: [WP Ultimate Recipe] Sharing account and post sharingFor other posts, when I try to pin, it only shows that particular post image not all available images. And this is happening only with this post where it is showing multiple images to pin. With other recipes posted through other recipe plugin, it only shows one image to pin. Which is strange.
It is not a big problem right now, although I’d prefer it does not happen. I’ll see if the same thing happens with my next post.
Thanks.
Thanks Tom!
So if I install the child theme now,what will happen to the content, plugins and the settings that I currently have? Will they automatically get transferred or I’ll have to do anything specific? Also, Do I have to reinstall the GP premium plugins or what?
I don’t know much about the technical stuff.
Thanks and wish you a very happy new year 2015! ??