Forum Replies Created

Viewing 15 replies - 1 through 15 (of 38 total)
  • Thread Starter jmhirst

    (@jmhirst)

    Right, have now solved the duplicate.

    If anyone is interested, the following works:

    Create a blank page, set it to private.
    On the ‘home’ page, set it’s Page Parent to the new blank page.

    Voila!

    Thread Starter jmhirst

    (@jmhirst)

    OK, have tried a few different themes and it seems that every theme has the same problem, so I don’t think it’s specifically aimed towards Freshy now.

    Have deployed a brand new theme, totally different code, layout, etc, and it’s the same problem.

    Has anyone else had these issues?

    Thread Starter jmhirst

    (@jmhirst)

    Thanks for that, will have a read through and see if it sheds some light.

    Thanks again.

    Thread Starter jmhirst

    (@jmhirst)

    Well the code is as follows

    <!-- main menu -->
    	<?php if(function_exists('yy_menu')) : /* yammyamm is installed and function yy_menu exists */ ?>
    		<ul class="menu" id="main_menu">
    
    			<!-- the home is the language root page -->
    			<?php if ($yy_options['home_type']=='page') { ?>
    
    			<li class="<?php if (yy_is_home()) { ?>current_page_item<?php } else { ?>page_item<?php } ?>">
    				<a class="first_menu" href="<?php echo yy_home_url(); ?>">
    					<?php _e($freshy_options['first_menu_label'],TEMPLATE_DOMAIN); ?>
    				</a>
    			</li>
    			<li class="<?php if (((is_home()) && !(is_paged())) or (is_archive()) or (is_single()) or (is_paged()) or (is_search())) { ?>current_page_item<?php } else { ?>page_item<?php } ?>">
    				<a href="<?php echo yy_home_url('blog'); ?>">
    					<?php _e($freshy_options['blog_menu_label'],TEMPLATE_DOMAIN); ?>
    				</a>
    			</li>
    
    			<?php }
    			else { ?>
    			<!-- the home is the language blog category -->
    
    			<li class="<?php if (((is_home()) && !(is_paged())) or (is_archive()) or (is_single()) or (is_paged()) or (is_search())) { ?>current_page_item<?php } else { ?>page_item<?php } ?>">
    				<a class="first_menu" href="<?php echo yy_home_url('blog'); ?>">
    					<?php _e($freshy_options['blog_menu_label'],TEMPLATE_DOMAIN); ?>
    				</a>
    			</li>
    			<!--
    			<li class="<?php if (yy_is_home('page')) { ?>current_page_item<?php } else { ?>page_item<?php } ?>">
    				<a href="<?php echo yy_home_url('page'); ?>">
    					<?php _e($freshy_options['first_menu_label'],TEMPLATE_DOMAIN); ?>
    				</a>
    			</li>
    			-->
    			<?php }?>
    
    			<!-- pages -->
    			<?php yy_menu('sort_column=menu_order&depth=1&title_li=','none'); ?>
    
    			<li class="last_menu">
    
    				<!-- if an email is set in the options -->
    				<?php if ($freshy_options['last_menu_type']=='email') { // the home is language root page ?>
    
    				<a class="last_menu" href="mailto:<?php echo $freshy_options['contact_email']; ?>">
    					<?php _e($freshy_options['last_menu_label'],TEMPLATE_DOMAIN); ?>
    				</a>
    
    				<?php }
    				else if ($freshy_options['last_menu_type']=='link') { // the home is language root page ?>
    
    				<a class="last_menu" href="<?php echo $freshy_options['contact_link']; ?>">
    					<?php _e($freshy_options['last_menu_label'],TEMPLATE_DOMAIN); ?>
    				</a>
    
    				<?php }
    				else { ?>
    				<!-- put an empty link to have the end of the menu anyway -->
    
    				<a class="last_menu_off">
    				</a>
    
    				<?php }?>
    
    			</li>
    
    			<!-- languages flags -->
    			<?php yy_lang_menu('lang_menu'); ?>
    
    		</ul>
    
    	<?php else : /* yammyamm is not installed or function yy_menu does not exist, use default menu */ ?>
    		<ul class="menu">
    
    			<li class="<?php if (is_home()) { ?>current_page_item<?php } else { ?>page_item<?php } ?>">
    				<a class="first_menu" href="<?php echo get_settings('home'); ?>">
    					<?php _e($freshy_options['first_menu_label'],TEMPLATE_DOMAIN); ?>
    				</a>
    			</li>
    
    			<?php freshy_wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>
    
    			<li class="last_menu">
    
    				<!-- if an email is set in the options -->
    				<?php if ($freshy_options['last_menu_type']=='email') { // the home is language root page ?>
    
    				<a class="last_menu" href="mailto:<?php echo $freshy_options['contact_email']; ?>">
    					<?php _e($freshy_options['last_menu_label'],TEMPLATE_DOMAIN); ?>
    				</a>
    
    				<?php }
    				else if ($freshy_options['last_menu_type']=='link') { // the home is language root page ?>
    
    				<a class="last_menu" href="<?php echo $freshy_options['contact_link']; ?>">
    					<?php _e($freshy_options['last_menu_label'],TEMPLATE_DOMAIN); ?>
    				</a>
    
    				<?php }
    				else { ?>
    				<!-- put an empty link to have the end of the menu anyway -->
    
    				<a class="last_menu_off">
    				</a>
    
    				<?php }?>
    
    			</li>
    
    		</ul>
    	<?php endif; ?>

    It’s taken directly from this guys theme : https://www.jide.fr/english/downloads/template-freshy-wordpress/

    I’m going to hack it and change it to my own style, but this is the first hurdle I’ve come accross which has me totally stumped.

    Thread Starter jmhirst

    (@jmhirst)

    Hi JamesICT, ok good idea, have done that but makes no difference.

    The address if it helps is https://www.northcode.co.uk

    I’m sure you’ll see exactly what I mean.

    (renamed Home to Frontpage, so now the menu shows Home, Frontpage, Services, Projects, Showcase, news)

    Thread Starter jmhirst

    (@jmhirst)

    Thanks Otto42, I did read through the documentation but it’s so overwhelming at times you find yourself getting lost and going somewhere which has no reference to what you originally wanted.

    But I’ll certainly give that link a better read.

    Thanks again.

    Thread Starter jmhirst

    (@jmhirst)

    Thanks for the link ekusteve, that’s exactly what I’m using, but unfortunately I’m using TinyMCE as the page editor as I don’t know any other alternatives. Is there an advanced editor that allows me to put PHP in the pages or something similar?

    Thread Starter jmhirst

    (@jmhirst)

    Does anyone have any further info on how I can put my blog posts onto my static pages please? I’m hoping to go live shortly and could really do with some help on this.

    Many thanks,

    Thread Starter jmhirst

    (@jmhirst)

    What alternative can I use for tinymce then?

    Thread Starter jmhirst

    (@jmhirst)

    Fantastic! Thanks for that!

    Thread Starter jmhirst

    (@jmhirst)

    No, the ability is disabled.

    Looks fine to me, nice site!

    Forum: Fixing WordPress
    In reply to: Prevewing pages
    Thread Starter jmhirst

    (@jmhirst)

    Good idea, never thought of that! Thanks MichaelH

    Thread Starter jmhirst

    (@jmhirst)

    Made a bit of progress on this, I’m hoping some PHP expert can fill in the missing piece…

    I have my title, which I grab by wp_title().

    But the BBClone needs a string enclosed in quotations.

    If I have…

    define(“_BBC_PAGE_NAME”, “wp_title()”);

    My stats show “wp_title()” as every page visited.

    If I have…

    define(“_BBC_PAGE_NAME”, wp_title());

    Then my stats show nothing as the wp_title() text isn’t enclosed in quotations.

    Is there a way in PHP to pass a variable inside quotations?

    TIA

    Forum: Your WordPress
    In reply to: My site redesign
    Thread Starter jmhirst

    (@jmhirst)

    Thanks for the responses folks. I’m still tinkering about with some of the CSS but I’m pleased the way it’s turning out.

    I’m really puzzled about the problems you’ve had Aesop. My main browser is indeed Firefox, but I’m a stickler for compatiblity and none of the problems you’ve mentioned appear on my IE (V6). The only ‘problem’ I’ve seen is if I scale the fonts up by three clicks, then the header of the first post appears after the sidebar (FF works fine though).

    I’ll certainly keep experimenting though, trying a different version of IE at work and get a few other IE users I know of to have a look, but I really appreciate the feedback, thanks for that.

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