Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)
  • thanks, looks good. the copy/paste bug seems to be fixed. it’s a little annoying that the existing wishlist is split out and not automatically converted, but luckily my current one is short enough to transfer!

    I had the same error installing today. The solution was to upgrade php on my hosting server. Mine lets me do that in the control panel so perhaps contact your hosting support.

    Thread Starter thomasmpreston

    (@thomasmpreston)

    Hang on – it’s a plugin conflict with Axis theme, have changed now. Wish you could delete these threads but hey ho.

    Thread Starter thomasmpreston

    (@thomasmpreston)

    Ah I see, thanks!

    Is there a way to give an automatic discount if people buy all files in that item? I guess having the option to choose a file OR the bundle? Doesn’t look like it, but thought i’d ask!

    Thread Starter thomasmpreston

    (@thomasmpreston)

    Hi, thanks for the reply!

    Good to know it’s in hand, I’ll look forward to the update ??

    Cheers,

    Tom

    Thread Starter thomasmpreston

    (@thomasmpreston)

    Ah, shame. Although I’m confused as to why not all the buttons load that show up on page and post.

    I’ll keep looking through your code and see if I can add the button myself, although I’ll probably just have to find another solution. Thanks anyway for the reply!

    Thread Starter thomasmpreston

    (@thomasmpreston)

    Actually, I have worked it out. Changed to:

    <?php c2c_next_or_loop_post_link('<div id="single-nav-left">%link</div>', '<span class="awesome-icon-chevron-left"></span>%title', false); ?>
                <?php c2c_previous_or_loop_post_link('<div id="single-nav-right">%link</div>', '%title <span class="awesome-icon-chevron-right"></span>', false); ?>

    So it was the ‘.__(‘Newer’,’adapt’).’ that needed replacing with %title.

    Thanks anyway! Glad I got that fixed ??

    Thread Starter thomasmpreston

    (@thomasmpreston)

    Thanks for that, I read that but can’t work out what I’m doing wrong.

    Anyone else able to help?

    Thread Starter thomasmpreston

    (@thomasmpreston)

    ? Ok, can anyone help with the code I posted?

    So for example to change

    <?php next_post_link('<div id="single-nav-left">%link</div>', '<span class="awesome-icon-chevron-left"></span> '.__('Newer','adapt').'', false); ?>

    from saying ‘Newer’ to the next post title, what would I change?

    Thanks!

    Thread Starter thomasmpreston

    (@thomasmpreston)

    Hi,

    Thanks, yes I do, although that <div> doesn’t exist in that file. Here’s the code:

    <?php
    /**
     * @package WordPress
     * @subpackage Yoko
     */
    
    get_header(); ?>
    
    <div id="wrap">
    	<div id="main">
    	<div id="content">
    
    			<?php if ( have_posts() ) : ?>
    
    				<header class="page-header">
    					<h1 class="page-title"><?php echo $wp_query->found_posts; ?> <?php printf( __( 'Search Results for: %s', 'yoko' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
    				</header><!--end page-header-->
    
    				<?php /* Start the Loop */ ?>
    				<?php while ( have_posts() ) : the_post(); ?>
    
    					<?php get_template_part( 'content', 'search' ); ?>
    
    				<?php endwhile; ?>
    
    				<?php /* Display navigation to next/previous pages when applicable */ ?>
    				<?php if (  $wp_query->max_num_pages > 1 ) : ?>
    					<nav id="nav-below">
    						<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'yoko' ) ); ?></div>
    						<div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'yoko' ) ); ?></div>
    					</nav><!-- end nav-below -->
    				<?php endif; ?>
    
    			<?php else : ?>
    
    				<article id="post-0" class="post no-results not-found">
    					<header class="page-header">
    						<h1 class="page-title"><?php _e( 'Nothing Found', 'yoko' ); ?></h1>
    					</header>
    
    					<div class="single-entry-content">
    						<p><?php _e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'yoko' ); ?></p>
    						<?php get_search_form(); ?>
    					</div>
    				</article>
    
    			<?php endif; ?>
    
    	</div><!-- end content -->
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    I can see when I ‘inspect element’ that’s the <div> with the info but not sure how to hide it for search results here.

    Forum: Plugins
    In reply to: [WP jQuery Pager] Fancy box
    Thread Starter thomasmpreston

    (@thomasmpreston)

    Thanks for the response. It works fine for what I need right now, but these would definitely be great improvements in the future. Cheers.

    Thread Starter thomasmpreston

    (@thomasmpreston)

    It depends which files you’re cloning.

    Thanks. Which files shouldn’t I clone? functions.php I guess from the first comment. Are there any others I can’t modify?

    Thread Starter thomasmpreston

    (@thomasmpreston)

    I mean a copy of the file in the child theme folder, is there a problem with (in the example above) copying the page template into my child theme, and modifying it to get rid of the comments functionality, then using that?

    No, that is a correct procedure in a Child Theme.

    Ah right, ok. So I’m doing things the right way? Cloning the files I want to alter and altering them in the child theme folder? Just to be clear, I’m still very new to WordPress ??

    Thread Starter thomasmpreston

    (@thomasmpreston)

    The problem with modifying theme files directly is that they will be overwritten when the theme is updated – so you will lose all your changes

    I mean a copy of the file in the child theme folder, is there a problem with (in the example above) copying the page template into my child theme, and modifying it to get rid of the comments functionality, then using that?

    Some files get copied into the Child Theme, then modified. But in a case like not having comments, there are some Dashboard settings for controlling certain things.

    It’s probably not the best example but something I was looking at at the time ?? I’m not sure there are settings in this theme to disable them but in any case, there are modifications I want to make generally.

    From your comment I assume what I’m doing IS ok? Creating a copy of the files and altering as I need?

    In my own case, and since I am not a coder, I began learning about WordPress settings and theme-specific changes by doing a *lot* of “How to…?” searches both here in these forums and out on the ‘net.

    I’ve done that too but still confused, even the comments here so far have confused me! But thanks, I’m hoping to get it eventually…

    Thread Starter thomasmpreston

    (@thomasmpreston)

    Thanks for the reply ??

    Ok, I’m obviously thinking this all wrong. My current project uses Responsive theme. As an example, I want my standard pages here to be pretty much like the ‘Full width page (no sidebar)’ template except I don’t want comments. So my inclination is to go to the full-width-page.php file and remove the comments code.

    Are you saying I need to add this as a new page type in that second file? I guess my thinking was to just use what’s there and tweak it to be how I wanted it rather than start with a new file, what’s the problem with doing that?

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