Forum Replies Created
-
AuthorPosts
-
February 3, 2020 at 9:39 pm in reply to: How to replace post date on home page posts – Ambiance Pro #496406skstudioMember
Anita, Thank you so much! I got it to work with your idea! I studied the site you mentioned above and then searched some more. Here is the code that I ended up with:
1. Create a shortcode: https://www.wpbeginner.com/wp-tutorials/how-to-add-a-shortcode-in-wordpress/https://www.wpbeginner.com/wp-tutorials/how-to-add-a-shortcode-in-wordpress/
2. Using https://www.isitwp.com/get-custom-field-value-with-shortcode/ as my inspiration,
added this my custom functions plugin. You could probably add it to functions.php.add_shortcode( 'field', 'sk_week' ); /**************************************************************** Shortcode to pull custom field ****************************************************************/ add_shortcode('field', 'shortcode_field'); function shortcode_field($atts){ extract(shortcode_atts(array( 'post_id' => NULL, ), $atts)); if(!isset($atts[0])) return; $field = esc_attr($atts[0]); global $post; $post_id = (NULL === $post_id) ? $post->ID : $post_id; return get_post_meta($post_id, $field, true); }
3. In the index.php modified the shortcode area
From:
echo '<p class="entry-meta">' . do_shortcode( '[post_date]' ) . '</p>';
To:
echo '<p class="entry-meta">' . do_shortcode( '[field "sk-prepost-title"]' ) . '</p>';
Works great!
Many thanks to you and the community!
SKskstudioMember@sgoerger, Thanks! Your idea to "just leave out the widget title (<h4>), and write some <h1> inside the text widget itself" was super helpful.
I left the widget title blank and added the <h1>title</h1> to the text widget itself and it worked perfectly.
Thanks much!!skstudioMemberKelly, I did that as well. Hopefully, either someone in the community with more knowledge than I will reply here and/or from Studiopress. I think it's a call to the font file that is causing the issue, but I am not sure where to find this call.
skstudioMemberI solved my issue with the following:
- Using this link as a clue, I added code to the functions.php file: http://www.studiopress.community/topic/genesis-2-0-custom-header-problem-fix/ (thanks so much for this post)
- I took out the !important in the code that was added to the functions.php file. I was taking the !important out of the .site-title background area.
- Made sure that the curly quotes were straight quotes. There are single quotes and double quotes that you have to replace.
- I found I had to make sure the line: $output = ''; was actually $output=' '; there needed be a space between the single quotes,
- I had to add !important in the style.css .site-header background... to override the inline code.I think I listed all the changes that I did to achieve my goal.
Hope this helps if someone runs into this.
June 21, 2013 at 9:51 pm in reply to: Small difference IE/FF vs Chrome/Safari on primary navigation #47146skstudioMemberI am having the same issue as well. FF/Chrome seem to line up, but IE is off.
See example here: http://imgur.com/4glfkZK.
I think it's how the browsers are interpreting the font and spacing. Could use some guidance. Thanks!skstudioMemberOzzy - That worked! I took out the ‘admin_header_callback’ => ‘associate_admin_style’ and the error is no longer showing on the backend. Thanks much!
skApril 16, 2013 at 12:41 pm in reply to: Genesis Slider – Blank Image before slider images appear #35793skstudioMemberHi, Did you ever eliminate the blank slide in the slider? I am also having the blank slider problem. Thanks!
skstudioMemberBrad, Thanks so much! I added the CSS you provided and it's a winner! I will replace my current image with a better one per your suggestion. Click here to see the results. Thanks again for taking the time.
skstudioMemberBrad, thanks for replying. The site is here The picture will be left aligned next to the entry-title. The tree in the sidebar is the big picture and I'll be making a smaller size that will be reduced to a small image and uploaded to the media library. The plan is to have this image and the entry-title be on all pages except the home page. An example is here that has images on both sides of the entry-title (another theme).
Any ideas are welcomed. Thanks!skstudioMemberThat helps. I want to make the black background image with more height (from 140 to 2xx). But because the bottom part of the image a scallop shape, I am not sure how lengthen it (give it more height) except to modify it in paint or photoshop, etc.
-
AuthorPosts