Forum Replies Created
-
AuthorPosts
-
cruisegleMember
Thanks.
When I get time, I'm going to remove the site-title and move it into the Social Icon area. This will give more space for the 200-250 words needed for a minute tale to sit above the fold within the content area. My estimate is around 140 words would sit above the fold with the current font and font size.
I know it is a quick fix, however busy on another play site of mine called I'm Doing. This is really minimalist. Using it to play around with a few ideas for creating a Microblog.
I’m an SEO Consultant by trade; who is getting by; just!
October 6, 2016 at 8:23 am in reply to: Jottings: A Minimalistic, Genesis Framework, Workstation Theme Adaptation #194299cruisegleMemberThanks.
I keep changing the colors to get the right pallet. Still work in progress and may start to use it properly at some point in the future.
I’m an SEO Consultant by trade; who is getting by; just!
cruisegleMemberI have done this on a website before; alas it was before I started to take notes; sorry. However there is a way you can do it without attacking the functions file; though the functions file is quicker to do.
On this test website of mine for Ventura Cruises; I have installed the Genesis Extender plugin.
In the Hook Boxes section I have created a hook that adds this...
<a href="<?php echo esc_url( get_permalink() ); ?>" rel="nofollow">Enquire about the <?php the_title(); ?> Cruise.<</a>
...to the genesis-entry_content of whatever conditionals I have set. In my case I have a set a conditional for is_front_page and is_category which means that text only sits on those pages.
Actually the site works by using a number of hook boxes and it tests out using posts as noindex, noarchive etc so the category pages become the target pages.
If you don't want to use the extender plugin, then I guess you could use the Genesis Hooks plugin and add something similar using the WordPress Conditionals Tags to get it to sit on the correct page.
Hope that helps a little?
I’m an SEO Consultant by trade; who is getting by; just!
cruisegleMemberIt almost seems that depending on the theme you are using or the Schema (local business etc) you are using; issues arise when you use the testing tool.
Generally I start by testing a design with the testing tool and then remove any ones that throw up faults and correct them in my functions folder.
Some sites require a bit of manipulation.
This is not really a Genesis issue; maybe my own as I want sites to work how I want them to work.
Great input @emmtre
I’m an SEO Consultant by trade; who is getting by; just!
cruisegleMemberOn my new blog I have removed post and page titles from the loop as I wanted them in the right header.
I am then using the PHP Code Widget plugin and adding the following code into the widget which is placed in the right header widget area.
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php if (is_front_page()) { ?>
<h1>Most of Marketing is Totally Bollocks;<br> I’m an SEO Consultant...</h1>
<?php } elseif (is_page()) { ?>
<h1><?php the_title(); ?></h1>
<?php } elseif (is_tag()) { ?>
Posts Tagged as <h1><?php single_tag_title(); ?></h1>
<?php } elseif (is_day()) { ?>
<h1>Talking Bollocks on <?php the_time('jS F Y'); ?></h1>
<?php } elseif (is_category()) { ?>
Posts marked as <h1><?php single_cat_title() ?></h1>
<?php } elseif (is_single()) { ?>
<h1><?php the_title(); ?></h1>
<?php } ?>So I guess you could use <?php single_cat_title() ?> somehow within an archive template.
I’m an SEO Consultant by trade; who is getting by; just!
cruisegleMemberI am right in assuming you have found how to add the title and Description tags?
If you edit the category itself you will find a section called "Category Archive Settings"
Fill in the whatever it is you want to add.
Failing that you could use a bespoke archive.php page or use one of the Genesis hooks with conditional tags.
I’m an SEO Consultant by trade; who is getting by; just!
cruisegleMemberHi
It is a while since I have done this and am sure there is an easier way to do it. However what you could do is remove this from the function file: (Please note you don't have to remove it)
/** Add the page title section */
add_action( 'genesis_before_content_sidebar_wrap', 'eleven40_page_title' );
function eleven40_page_title() {
genesis_widget_area( 'page-title', array(
'before' => '<div class="page-title widget-area">',
) );
}Then go to simple hooks and check the button under "Content Hooks" to allow for php for the genesis_before_content_sidebar_wrap hook.
In the hook box itself you can add something like this for individual pages.
<div class="page-title widget-area">
<?php if (is_home()) { ?>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Name of Sidebar for Home page') ) : ?>
<?php endif; ?>
<?php } elseif (is_page('epoxy-flooring')) { ?>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Name of Sidebar for this page') ) : ?>
<?php endif; ?>
<?php } elseif (is_page('garage-floor-tiles')) { ?>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Name of Sidebar for this page') ) : ?>
<?php endif; ?>
<?php } ?>
</div>Go to Simple Sidebar plugin and add the name of the Sidebars that you have added above; technically you might want to add the sidebars first.
If it is category based use this:
<div class="page-title widget-area">
<?php if (is_home()) { ?>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Name of Sidebar for Home page') ) : ?>
<?php endif; ?>
<?php } elseif (is_category('mat-coverings')) { ?>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Name of Sidebar for this category') ) : ?>
<?php endif; ?>
<?php } elseif (is_category('cleaning-concrete-repair')) { ?>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Name of Sidebar for this category') ) : ?>
<?php endif; ?>
<?php } ?>
</div>You could add a universal sidebar that covers every page bar the home or any other page; this would look like this:
<div class="page-title widget-area">
<?php if (is_home()) { ?>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Name of Sidebar for Home page') ) : ?>
<?php endif; ?>
<?php } else { ?>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Name of Sidebar for the universal one') ) : ?>
<?php endif; ?>
<?php } ?>
</div>If using a custom front page use is_front_page instead of is_home
Don't forget that you can mix and match pages and categories etc using elseif but be aware of the hierarchy of the content. By that I mean if you have something in a category and a child of that category and you want the child category to behave differently from the main category then the elseif for this child category must come before the elseif of the main category etc.
Hope this helps and sorry i my coding is wrong!
I’m an SEO Consultant by trade; who is getting by; just!
-
AuthorPosts