Forum Replies Created
-
AuthorPosts
-
December 22, 2017 at 11:25 am in reply to: How to add SVG logo before website name in header? #214745MatusMember
Thank you Victor, what should I do next?
MatusMemberI shared a website above. When you resize the window to the mobile size and click on the menu, then the hamburger icon change instantly to close icon. I'd like to change this.
I'm not looking for the fade animation but something more advanced.
Take a look at this page.
Swipe down a little further so the navigation will reveal (on mobile) and click on the hamburger icon.
That icon will animate to the close icon. That's something I'm trying to accomplish.MatusMemberYes, exactly. Thanks for that 🙂
MatusMemberI solved this question.
I used this CSS code (you can customize it 🙂 )
.comment-list .bypostauthor > article, .comment-list .comment-author-NAME-OF-AUTHOR > article, .comment-list .children > .bypostauthor > article, .comment-list .children > .comment-author-NAME-OF-AUTHOR > article { YOUR CODE GOES HERE }
MatusMemberWell, thank you for wishing me good luck 🙂
MatusMemberThanks, but I'm already using Genesis Sample theme.
I found similar tutorial here, but from some reason that CSS code didn't work for me.MatusMemberI figured out my problem.
I created in my Genesis child theme file named 'front-page.php'.
I add there PHP scripts I wanted to (full-width, custom text...).
Finally this is the script which display only 2 latest posts on homepage:
?><?php query_posts('posts_per_page=2'); ?><?php
Also I set in WP reading settings 'Display latest posts' in homepage.
Little tip: add at the very bottom of the 'front-page.php' script, which actually show posts:
genesis();
MatusMemberThanks for the tip.
I'm using Genesis Sample theme. I just thought Genesis Framework is the name for child theme.July 27, 2017 at 1:57 am in reply to: ? If specific category → don't show the category name #209621MatusMemberI resolved this problem. I created one category "Blog" and then every other category I set as subcategory to the Blog. In the posts I add categories I wanted except Blog. Because the Blog is the main category I was able to find all the posts in Blog page.
MatusMemberThanks.
Adding this CSS code fixed the problem:
.avatar { float:none; }
MatusMemberAh, I didn't know that 🙂
This is what I wrote you:
I created a new test user for you (my website is in maintenance mode).
Login page
Username: studiopress
Password: forum123TestAlso my website is in slovak language - WP admin is in english, so as instructions.
All you need to do after you login:
1. go to the homepage
2. Look at the first postI wrote you there some details ?
MatusMemberThis reply has been marked as private.MatusMemberThis is the code I thought will be right, but I got an error.
add_action('genesis_entry_header', 'wpsites_single_post_author_avatars'); function wpsites_single_post_author_avatars() { if ( ! is_singular( 'post' ) & ! is_category('') & ! is_home() ) return; ?> <?php printf('<p>%1$s</p>', __('Wrote by ') ) echo get_avatar(get_the_author_meta('email'), 30); printf('<p>%1$s</p>', ?> <?php }
MatusMemberI'm using the first code snippet.
I forgot to add a CSS code which caused gravatar wasn't visible.
Now I fixed it.If I may, I'd like to ask you a question.
What will be the code if I wanted it to be in format "Wrote by Gravatar, Author name, on Date" (without commas)?July 14, 2017 at 4:09 am in reply to: ? If specific category → don't show the category name #209093MatusMemberOne more think.
I don't want to display text "Filed under:" before categories.
Just the names of categories separated without comma (I'll style it so each category will have own border around itself).July 14, 2017 at 3:50 am in reply to: ? If specific category → don't show the category name #209090MatusMemberI'd like to display article category in post.
I don't want to use the standard edit method - StudioPress plugin Simple Edits.
What I don't like about this plugin I can choose only entry meta (above and below) article sections and there put some available shortcodes.My conditions:
1. Display post category above post title. This category should be also linked to its archive page. (When I click on category named Newsletter, I will be redirect to the Newsletter category archive page.)
2. If is article filed under category Blog, don't display just category Blog.
3. Don't display categories in pages (that's I think sure thing because pages don't have categories).MatusMember*update*
Image above isn't displaying, you can find it here
MatusMemberThanks, but I'm looking for some more advanced solution.
I found this article, which explains how to make featured images be outputted into div background images. It would be nice if I could output also images in posts the same way.
Here's a link: https://akouspesne.sk/5kqnHowever, I don't know how to insert that code into my WP site. For example this one:
<?php $img = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), "full"); $img = $img[0]; ?> <div class="postimg" style="<?php if($img){echo 'background:url('.$img.');';} ?>"> </div>
Any suggestions? Or do I have a wrong code?
-
AuthorPosts