Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter orgzchaos

    (@orgzchaos)

    Issue resolved!

    Thanks a lot ??

    Thread Starter orgzchaos

    (@orgzchaos)

    When you hover at any item listed in the Lowest Priced custom page, you’ll see how the item shifts down. Now since this page is using the exact same code as the main index, I can’t figure out why the main index’s CSS seems to be working fine but not for this page.

    I am sure this has something to do with wordpress which is causing some kind of a conflict, but since I haven’t used this platform long enough it is not possible for me to figure this one on my own.

    Thread Starter orgzchaos

    (@orgzchaos)

    Now I have the URL as well, you can see it at honeystolemymoney.com.

    Please notice how the post dividers shifts down and back up when hovered and removed in the lowest price page.

    I have tried multiple stuff to no avail, but then again I am not much of an expert.

    Thread Starter orgzchaos

    (@orgzchaos)

    Its okay, I fixed this issue using a combination of stuff. Now its working like a charm.

    Thanks

    Thread Starter orgzchaos

    (@orgzchaos)

    <div class=”theexcerpt”> is the divider I use for the excerpts.
    Initially I just wanted to give letter spacing as can be seen in style.css codes but then I’ve played around a little to see if one of those fix this issue, but it didn’t help.

    Thread Starter orgzchaos

    (@orgzchaos)

    Kindly find below.

    https://codepad.org/45m53TEG

    Thanks

    Thread Starter orgzchaos

    (@orgzchaos)

    @steven Jones this is what index.php looks like and this is what loop.php looks like ( there is no loop-index.php ).

    @alchymyth Sorry but the site isn’t URL ready but you can find the relevant codes above and I can define the difference. Whenever I hover over a content box ( single post, featured image + excerpt ) it slides down and comes back to its place when the cursor is off it. No such thing when the main index is viewed.

    Thread Starter orgzchaos

    (@orgzchaos)

    I was going through how to put in conditions in the current page.php file without having to create a new template file but got lost a little bit.

    Following is my page.php file:

    <?php get_header(); ?>
    
    		<div id="container">
    			<div id="content" role="main">
    
    			<?php get_template_part( 'loop', 'page' ); ?>
    
    			</div><!-- #content -->
    		</div><!-- #container -->
    
    <?php get_footer(); ?>

    Following is my loop-page.php file:

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

    Now I have the loop-index.php ( and index.php ) which sort contents based on their posting date. I can manipulate those and create four new files i.e. loop-lowest.php ( and lowest.php ) and also loop-highest.php ( and highest.php ) to get the job done as required, what exactly do I need to edit in the two page files shown above to get the two manipulated files to show up at https://myblog.com/lowest and https://myblog.com/highest?

    Thread Starter orgzchaos

    (@orgzchaos)

    What I am trying to do is make alternate versions for the main index.php file, ones that display posts based on certain custom field so the alternate php file will stay as a page template just like the main file.

    Thread Starter orgzchaos

    (@orgzchaos)

    Agree to the post above, I tried it earlier and it was working that way but still couldn’t get it to work as https://mysite.com/myphppage

    I saw the docs again and it was pointing towards modifying the page.php file besides doing what I did before but I still can’t put in the pieces for the whole scenario because I was in kind of a rush to get it done.

    For example, I have a file myphppage.php which uses the get_template_part(‘loop’,’myphppagecontent’) to fetch the rest. What exactly do I need to modify in page.php because that seemed to be pretty generic to me and nothing about assigning certain permalinks to certain files. Or some other way to get this done?

    Thread Starter orgzchaos

    (@orgzchaos)

    Works like a charm!

    Thanks a lot!

Viewing 11 replies - 1 through 11 (of 11 total)