jessica
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple Social Icons] Adding icons with FontelloHey, it worked! I just had to clear my cache.
I realize I’ll lose all these changes if I ever update the plugin.
Forum: Themes and Templates
In reply to: [Twenty Twelve] Drop down menus for archives and categoriesI got this sorted, here’s the code I used:
Browse by month: <div id="archive"><select name="archive-dropdown" onchange="document.location.href=this.options[this.selectedIndex].value;"> <option value=""><?php echo esc_attr( __( 'Select Month' ) ); ?></option> <?php wp_get_archives( array( 'type' => 'monthly', 'format' => 'option', 'show_post_count' => 1 ) ); ?> </select></div> <br /> Browse by category: <div id="cats"><?php wp_dropdown_categories('show_option_none=Select category'); ?> <script type="text/javascript"><!-- var dropdown = document.getElementById("cat"); function onCatChange() { if ( dropdown.options[dropdown.selectedIndex].value > 0 ) { location.href = "<?php echo get_option('home'); ?>/?cat="+dropdown.options[dropdown.selectedIndex].value; } } dropdown.onchange = onCatChange; --></script> </div>
Forum: Themes and Templates
In reply to: [Twenty Twelve] Adding extra widget areasThank you! I found this too, which helped a ton, and I got the top area sorted. https://www.tips4developer.com/wordpress/wordpress-create-custom-widget-area/
Forum: Themes and Templates
In reply to: [Twenty Ten] Widgetizing the header and footerAUGH. I always screw up in this forum. I meant to post this in twenty twelve.
[ Moderator note: Closing this thread, you can continue in your other thread. https://www.ads-software.com/support/topic/adding-extra-widget-areas?replies=1#post-3814824 ]
Forum: Themes and Templates
In reply to: [theme: twentytwelve] Help with date coding and stylingThanks – fixed the class in content-page.php
Forum: Themes and Templates
In reply to: [theme: twentytwelve] Help with date coding and stylingThat’s what I previously thought, and then had a developer yell at me for not using the functions file, so I was worried it was more of a ‘hack’ than an elegant solution.
Anyway, the issue I’m having with this solution, is it removes the ability to add the if statement that only made the styling appear on the posts.
if ( ! is_page() ) { ?>
So my design tampering causes issues on the static pages where the date doesn’t appear. Any ideas for a solution to this?
Forum: Themes and Templates
In reply to: [theme: twentytwelve] Help with date coding and stylingSorry for the duplicate, I found it — I was trying to click on the ‘edit’ link under my name and it went nowhere, so I thought I’d messed up.
Anyway, I came up with a bandaid solution for this, by creating a new content.php file for my child theme and posting the entry-meta code in there. Then using absolute positioning with a margin padding the entry title.
However, if anyone has a more elegant solution using the functions file, I’m all ears.
Thanks!
Forum: Themes and Templates
In reply to: [Twenty Twelve] Adding comment count / link to metaForgot to mark as solved…
Forum: Themes and Templates
In reply to: [Twenty Twelve] Adding comment count / link to metaWonderful! Exactly what I needed – thank you very much!
Forum: Themes and Templates
In reply to: [Twenty Twelve] Adding comment count / link to metaI was able to edit it so it showed only categories, but I want to add a comment link. So it would read like so:
Filed under: category list Leave a reply
or
Filed under: category list 3 Comments
With ‘leave a reply’ and ‘# Comments’ links to the comment form.
I have icons to use, here is a screenshot of the area in my photoshop mockup I’m slicing from: https://elevensixty.com/meta.png
Forum: Themes and Templates
In reply to: [Twenty Twelve] Adding comment count / link to metaSure:
function twentytwelve_entry_meta() { // Translators: used between list items, there is a space after the comma. $categories_list = get_the_category_list( __( ', ', 'twentytwelve' ) ); // Translators: used between list items, there is a space after the comma. $tag_list = get_the_tag_list( '', __( ', ', 'twentytwelve ) ); $date = sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a>', esc_url( get_permalink() ), esc_attr( get_the_time() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ) ); $author = sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>', esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_attr( sprintf( __( 'View all posts by %s', 'twentytwelve' ), get_the_author() ) ), get_the_author() ); // Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's name. if ( $tag_list ) { $utility_text = __( 'Filed in %1$s ', 'twentytwelve' ); } elseif ( $categories_list ) { $utility_text = __( 'Filed in %1$s ', 'twentytwelve' ); } else { $utility_text = __( 'Filed in %1$s ', 'twentytwelve' ); } printf( $utility_text, $categories_list, $tag_list, $date, $author ); } endif;
Forum: Fixing WordPress
In reply to: What is needed for pingbacks to show as comments?Nobody? This is truly bizarre – I’ve never seen the issue before.
Specific instance: https://verybaby.com/blog/ta-da/
You can see it says “one response” but no comments show. The response is a pingback which has been approved in the admin to display.Of course I have pings enabled on the post.
Forum: Fixing WordPress
In reply to: What is needed for pingbacks to show as comments?Yes
I hadn’t noticed the pages were excluded, thanks so much for that – some others I tried made them show.
For anyone else, looking to exclude a category from the archives (I didn’t want my sideblog stuff to clog everything up) find
$rawposts = get_posts( 'numberposts=-1' );
and change it to:
$rawposts = get_posts( 'numberposts=-1&category=-YOURIDHERE' );
Change YOURIDHERE to your category ID, mine was 34.
Thanks!
Ugh, just kidding, can’t post over there unless you’re a moderator.
Looking at this: https://wpbits.wordpress.com/2007/08/06/a-look-at-wordpress-filters-disable-wpautop-on-post-formatting/
Anyone know *which* filter would need to be turned off? I don’t want all HTML to be disabled, just the automatic line breaks.
Help, anyone?