Forum Replies Created
-
AuthorPosts
-
Breezii K.Member
bumpp
Breezii K.Memberbump
Breezii K.MemberWas hoping the image caption section would do this but it's not appearing, and I am not the best at working with custom code - all the options I have tried thus far have failed.
Breezii K.MemberI think I may have to give up on this idea and try to find a different way of doing this perhaps. All I wanted to do was to show the Image Source Credit link on each of my featured images (but only on the post page and not the homepage).
I seem unable to figure it out, hmm.
Breezii K.MemberWHen I try to add the suggested code given from the article to the snippet of 'featured image' code found in my functions.php file (above) I see this error;
Your PHP code changes were rolled back due to an error on line 169 of file wp-content/themes/wellness-pro/wellness-pro/functions.php. Please fix and try saving again.
syntax error, unexpected '<'
Breezii K.MemberI tried looking for it there the other night but am not sure exactly where this snippet of code needs to go; is it somewhere in this section?
// Add featured image on single post.
add_action( 'genesis_entry_content', 'wellness_featured_image', 1 );
function wellness_featured_image() {$add_single_image = get_theme_mod( 'wellness_single_image_setting', true );
$image = genesis_get_image( array(
'format' => 'html',
'size' => 'featured-image-large',
'context' => '',
'attr' => array ( 'alt' => the_title_attribute( 'echo=0' ), 'class' => 'aligncenter' ),
) );if ( is_singular() && ( true === $add_single_image ) ) {
if ( $image ) {
printf( '<div class="featured-image">%s</div>', $image );
}
}}
// Modify size of the Gravatar in the author box.
Breezii K.MemberHello,
Thank you for the response. I tried that plugin along with about 8 others and nothing seems to have worked for me, as far as I can tell.
I did find this article, however;
https://napitwptech.com/tutorial/wordpress-development/display-image-caption-added-wordpress/...and am wondering if perhaps this method could work with the Genesis framework and Wellness Pro child theme I am using.
If so, they first suggest this-
For the display of the image caption under the featured image, you first have to know that which file is rendering the display of the featured image in your site.
So I wonder where exactly in my files might the featured image be 'rendering to display'? 🙂
Breezii K.MemberThank you! I got this to work by installing the Genesis Simple Edits plugin and using that to hide the tags and also the Filed Under section. 🙂
Breezii K.MemberHello,
Thank you SO much for the response. I tried my luck asking the wordpress.org community but every solution they offered didn't work for my site for some reason, until someone mentioned it might be due to the genesis framework and directed me to asking here at the studiopress forums.
I am glad to see there is a solution for this though, although whether it would work for me or not I do not yet know. I believe I may as well wait for the update to roll around first to see what that has to offer, then afterward I will see what solutions I can find for this if I yet need one.
Also, with the solution you offered with the link above unless I'm mistaken, it looks as though that would also disable other functionalities such as underline and bold. I do not want that, I only wish to disable the header 1, 2, and 3 options and nothing else.
Hmm, hopefully, the new update can offer better functionality and options but I suppose we shall see. I don't see the point in going through all this hassle only for the update to potentially take it all away, as it's a minor (preference-type) edit anyway. Nothing too important. I may revisit this thread once the update rolls out to see how I can move forward from there though...
Thank you for your time and assistance!!
Breezii K.MemberHey!
So it turns out I kept experimenting with different plugins to see if there was an easier way to do this and I have found one that doesn't enlarge the title text so I'm gonna go ahead and stick with this one I found, instead of trying to tinker with my site files. xD
Thank you so much for helping me all the same though, wanted to let you know!! ♥
Breezii K.MemberHello,
The plugin I am hoping to use (if I can fix the title size) is this one,
I don't see a setting in plugin settings to change the title size manually so I will try to add "rpwwt-post-title" to the stylesheet but then how do I add a font size? Would it be something like this?
"rpwwt-post-title" font size= 12pt
I really don't know how to do this haha, so any assistance would be greatly helpful, thank you so much!
Breezii K.MemberHey!
Thanks for the quick reply. 🙂
I currently have a backup 'recent posts' plugin being used in the sidebar but the one I truly want to use makes the post title large (as mentioned) and so I have it disabled at the moment.
I'm not too savvy with code and have never edited plugin files before so I think my best option would be to insert code for this into my theme's style sheet in the style.css file.
I don't know exactly what code I should use for this though, is it the one you posted above? "rpwwt-post-title"
Or is there more to it? How can I adjust the font size on my own? Am I supposed to put custom code into my stylesheet, or am I supposed to look for "rpwwt-post-title" and find where it says to edit the text size? Just trying to clarify. :}
Thanks SO much for your help!
Breezii K.MemberWoohoo! Thanks so much Christoph this worked for me! 😀
Breezii K.MemberThat worked exactly as intended - thank you so much!!! 🙂
Breezii K.MemberHmm... anyone? 😀
Breezii K.MemberThis reply has been marked as private.March 16, 2016 at 5:44 pm in reply to: Need Help Adding Logo To The Header of Genesis Sample Child Theme #181597Breezii K.MemberAlso, I have tried the instructions at this link;
However I don't have the 'use site title/logo' option under my Genesis theme settings for the header section.
Instead, mine looks like this - http://snag.gy/e3Qnu.jpg
Also, my logo is in a circular shape so I'm hoping I can get it to fit beside the site title/tagline text in the right way.
I will keep looking online for various tutorials on this but any advice or tips would be much appreciated, thanks again!
🙂 🙂
March 16, 2016 at 5:38 pm in reply to: Need Help Adding Logo To The Header of Genesis Sample Child Theme #181596Breezii K.MemberAlso.... I have already tried the instructions at this link;
However I don't have the 'image logo' option in my Genesis theme settings, instead my theme settings look like this for the header section;
I will continue searching the interwebs to see if I can find an answer for this, but if anyone has any tips I'd be most thankful. 😀
- Bre
Breezii K.MemberThank you to everyone who offered help on this!!
After going over everything, it would seem this is what I am looking to do carasmo -
Alternatively
If you want to add styles as an dropdown in Tiny MCE (the visual editor) that’s even more involved.And you are correct that does seem much too difficult for me haha! I did a little more digging into some of the plugins instead, and decided to go with this one which let's me do exactly what I am trying to...
https://wordpress.org/plugins/google-font-manager/
Figures I am still using a plugin to do this but that is ok. I will go through my plugins and see what else I can remove instead to help with site speed. 🙂
Thank you again for all the help, I will mark this thread as solved. 🙂
Breezii K.MemberHey Victor, thank you for the response!
I followed all the directions at the link you gave me - great tutorial btw. 🙂
It hasn't worked for me much like the others though, so I most definitely must be doing something wrong yet haha. >.<
However I think that is probably because I am somewhat confused on this...
To add the fonts to a text block class, you need to create a class in CSS for the new font-family and add it to the elements in your post. For example, the css would like this:
.my-google-font {
font-family: 'my google font';
}
In your post, you would wrap the text in this class:<span class="my-google-font">This is my fancy text in the new Google font!</span>
Where do I put these snippets of code again?
Thank you so much for helping me with this, I am determined to figure it out! ^_^
-
AuthorPosts