Forum Replies Created

Viewing 8 replies - 16 through 23 (of 23 total)
  • Thread Starter maryjanesfarm

    (@maryjanesfarm)

    Correct. I wanted no heading tags if there was no page title.

    If I follow what you’re saying, the site I’m managing is not well enough structured to worry about maintaining heading structure. (By “logical heading tag order”, you mean that the topmost tag is an h1, the next an h2, and so on to h4s, h5s, etc, correct?)

    For the pages (and this only applies to pages, not posts), if I leave the title out, I don’t want it to have a title. (Posts, conversely, are required to have a title.) Pages are not automatically presented anywhere within a site menu structure; I have to link to them specifically. In this instance, the link is in the footer, because I’m using a page to create the Privacy Policy. Also, in this instance, I did want the page’s title of “Privacy Policy” displaying; whereas I did not want titles displayed on “static” informational-type pages I had previously created.

    Thus, I also wouldn’t want to auto-generate a title if one is missing.

    Thread Starter maryjanesfarm

    (@maryjanesfarm)

    When I remove my added if statement, the <h1> gets inserted around the title again.

    The code I provided above is in the exact same place as it is in TwentyTen, on loop-page.php. So, loop-page.php gets called by onecolumn-page.php.

    And, yes, the snippet as well as the current code gets called within the loop. Here’s the complete structure from loop-page.php, with my customization now removed:

    <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
    
    	<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    		<?php if ( is_front_page() ) { ?>
    			<h2 class="entry-title"><?php the_title(); ?></h2>
    		<?php } else { ?>
    			<h1 class="entry-title"><?php the_title(); ?></h1>
    		<?php } ?>
    
    		<div class="entry-content">
    			<?php the_content(); ?>
    			<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
    			<?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?>
    		</div><!-- .entry-content -->
    	</div><!-- #post-## -->
    
    	<?php /* comments_template( '', true ); */ ?>
    
    <?php endwhile; // end of the loop. ?>
    Thread Starter maryjanesfarm

    (@maryjanesfarm)

    Why, it just displays it right as rain, of course.

    So … that’s interesting. Why would adding one enclosing if statement change a durn thing? Guess I’ll try getting rid of the added if statement in my customized theme to see if that makes a difference…

    (Good call, esmi.)

    Thread Starter maryjanesfarm

    (@maryjanesfarm)

    Alright, well, nevermind.

    It appears to only be an issue w/ IE8 (and probably earlier versions) on Windows XP x64.
    Don’t know why still, but not worth worrying about (unless I do start seeing examples on 32-bit XP).

    Thread Starter maryjanesfarm

    (@maryjanesfarm)

    OK. How about this?

    The image may not be displaying because some sort of cross-site scripting is not allowed on my server. Therefore, the img URL does work when visited directly via the browser, but won’t load when called from the WP site.

    Except, I can call and display images from other sites in a post. Placing the Gravatar URL directly in a post still does not display the default, however. It will hold the space, place background colors, etc. but will not show the blank image selected via the &d= query string (and thus IE still shows the “x” placeholder).

    Well, if I can administer my server via Webmin, what setting should I look for to test this theory out regardless?

    Thread Starter maryjanesfarm

    (@maryjanesfarm)

    Case in point about spending time searching plug-ins:
    https://www.1stwebdesigner.com/wordpress/33-wordpress-plugins-to-power-up-your-comment-section/

    A big collection of comments “stuff”, and not a single one does what I need. I just need to turn off all the random notifications sent out every which way to every admin and their dog, and just notify one person regardless of them being the author or not, without turning off every single other thing that notifies admins about things happening to WordPress.

    Anyway… (Do I sound bitter? I hope not. Not trying to. ??

    Thread Starter maryjanesfarm

    (@maryjanesfarm)

    And, yes, I do know about this page:
    https://codex.www.ads-software.com/Writing_a_Plugin

    But if y’all feel this is the best, easiest resource, then that’s reassuring that I’m not just wasting time slogging through all the data.

    I also know I can search plugins, but I never have good luck with that, because plugins don’t work, or do something slightly different than I want, or do way more (and once again, some steep learning curve for a specialized something when I can just spend the same amount of time simply customizing the PHP directly).

    Thread Starter maryjanesfarm

    (@maryjanesfarm)

    I want to make minor customizations here and there – like having comments notifications not sent to authors; or making small changes to included functions, etc.
    And I think that just finding where things happen and commenting out a line or two here or there, or making small changes to some loop, is far easier than what I’m going to have to learn in order to write effective, manageable plugins.
    But it suddenly occurred to me that these hacks might be affected by WordPress updates; and that creating plugins is probably a lot smarter, more dynamic way to handle such things, once I load all the know-how into my memory.
    It’s just getting to that point of competency – not going to bother if I don’t have to.

Viewing 8 replies - 16 through 23 (of 23 total)