dequecolour
Forum Replies Created
-
Forum: Themes and Templates
In reply to: organizing posts on homepagewhile some of that code is helpful (i found it about a month ago. the blog author is very smart.) it does not help in this instance because once i get to the issue of needing two loops in order to separate the featured versus recent posts, it’s not enough information. i read all about loops on codex, and i almost understand how to create the two loops as you can see above, but i still can’t get the code from that to work — always get an error at the last line of code. once i do create the two loops, i’ll still need more than the powertools site has. i actually posted a q to that blog directly a few days ago. thanks — seems like we are at least looking in the same directions
Forum: Themes and Templates
In reply to: organizing posts on homepagei feel like this is the right start, except it still doesn’t address putting the posts in two columns. still, the code doesn’t even work. if anyone smarter than i am could help, i’d appreciate it.
<?php /** * The main template file. * * This is the most generic template file in a WordPress theme * and one of the two required files for a theme (the other being style.css). * It is used to display a page when nothing more specific matches a query. * For example, it puts together the home page when no home.php file exists. * * Learn more: https://codex.www.ads-software.com/Template_Hierarchy * * @package WordPress * @subpackage Twenty_Twelve * @since Twenty Twelve 1.0 */ get_header(); ?> <?php ?> <div id="primary" class="site-content"> <div id="content" role="main"> <div style="margin-bottom: 20px;"> </div> <?php $my_query = new WP_Query('category_name=FAVORITES&posts_per_page=7'); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate[] = $post->ID ?> <!-- Do stuff... --> <?php endwhile; ?> <!-- Do other stuff... --> <?php if (have_posts()) : while (have_posts()) : the_post(); if (in_array($post->ID, $do_not_duplicate)) continue; ?> <?php twentytwelve_content_nav( 'nav-below' ); ?> <article id="post-0" class="post no-results not-found"> <?php if ( current_user_can( 'edit_posts' ) ) : // Show a different message to a logged-in user who can add posts. ?> <header class="entry-header"> <h1 class="entry-title"><?php _e( 'No posts to display', 'twentytwelve' ); ?></h1> </header> <div class="entry-content"> <p><?php printf( __( 'Ready to publish your first post? <a href="%s">Get started here</a>.', 'twentytwelve' ), admin_url( 'post-new.php' ) ); ?></p> </div><!-- .entry-content --> <?php else : // Show the default message to everyone else. ?> <header class="entry-header"> <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentytwelve' ); ?></h1> </header> <div class="entry-content"> <p><?php _e( 'Apologies, but no results were found. Perhaps searching will help find a related post.', 'twentytwelve' ); ?></p> <?php get_search_form(); ?> </div><!-- .entry-content --> <?php endif; // end current_user_can() check ?> </article><!-- #post-0 --> </div><!-- #content --> </div><!-- #primary --> <?php get_sidebar(); ?> <?php get_footer(); ?>
Forum: Themes and Templates
In reply to: organizing posts on homepageany takers? i looked at this site: https://www.leeabbamonte.com/ (whose link i meant to share up above) and it looks like his second column is a widget. That puzzled me — but, is that how I do it? Or is there a way to create a loop directly in the code of the index file and will call forth whichever posts she chooses for the favorites column? I’d love to do it with code if I can.
Forum: Themes and Templates
In reply to: organizing posts on homepageone more q – sorry. i would also love to be able to add the date underneath the titles of the titles of the posts like these sites do:
any ideas how i can add that in twenty twelve? could i add box frames around the posts and titles like these two sites have, or no?
Forum: Themes and Templates
In reply to: organizing posts on homepageto be clear, i am referring to the area where i have posts on the main page, under the photoslider.
Forum: Themes and Templates
In reply to: Adding a News Sign Up Box in Header – 2012i think i’d like to try making the icons a tad bit smaller, each of them, and put them in a row of six. then the newsletter sign up would be above those icons. i love how you showed me to put them in the header, but they are a little big right now, and i want it to look professional. the header is still being designed although i am loving it more and more. even the scale of the world map i drew on the left and the site title is not set in stone.
anyway — i’ve used a plugin for mail chimp in the sidebar, yes. it looked out of place bc it wasn’t customized to go with my site. it was grey with a random font that didn’t fit.
i will live if it isn’t possible, but what i’d want ideally would be a box i drew, so that it could be black and white and be labeled with a font i chose, and then it would be programmed to connect to mailchimp (or any other valid bulk email site.) i know it must be possible to program generally bc i see sites with custom boxes. i just don’t know if it will work with twenty twelve’s header. i know this is a real niche question, so it’s just a shot in the dark.
gracias!
Forum: Themes and Templates
In reply to: Adding a News Sign Up Box in Header – 2012Can anyone chime in?
Forum: Themes and Templates
In reply to: edits posts on homepagethis is awesome, and i’m so glad you shared it with me. it will definitely be a majorly important resource going forward.
i still have no idea how to do what i needed to do in case someone else comes across this post that does know!
thanks!
Forum: Themes and Templates
In reply to: customized sidebari’m wondering if it’s an edit to code that is not in the widget?
to that end, any of those similar grey lines under the header, around the nav, i could do without. can i remove all of those?
thanks much
Forum: Themes and Templates
In reply to: edits posts on homepagemy custom CSS manager allows me to enter code, i just don’t know what code will remove the text i want removed. and add the text i want added.
Forum: Themes and Templates
In reply to: edits posts on homepageyah i use a child theme..
i have a custom css plugin but i don’t understand how that would help. sorry
Forum: Themes and Templates
In reply to: customized sidebarq:
does the image widget have to add this drop shadow to the left bottom? i don’t want it to decorate my image.. i don’t see any way to tell it to stop.
you can see the shadow here on “just got back” on the right sidebar: internalcompass.us/castle
it’s subtle, but i don’t like it.
if it just comes with the widget, would you by any chance recommend another image widget or way to do this
Forum: Themes and Templates
In reply to: customized sidebarThanks. I want it to load as quickly as possible, so I’ll try the above. I am not familiar with the custom nav widget, so I’ll take a look at it and the image widget. I’m just averse to the mundane/antiquated experience of Arial and Times New Roman links, and I want it to be a bit more stylized. Appreciate your input – thanks
Forum: Themes and Templates
In reply to: customized sidebarthanks. only one q: my assumption is that in order to link each city to a corresponding post, I’ll need to create a bunch of small images. One for each word. Yah?
Forum: Themes and Templates
In reply to: Widget Free Sidebarwell, would ya lookie there. gracias, amigo.