Forum Replies Created
-
AuthorPosts
-
Brad DaltonParticipant
Try this:
Or grab the code from Github https://gist.github.com/5277191.git
Align using CSS rules http://www.w3schools.com/tags/att_img_align.asp
Brad DaltonParticipantBrad DaltonParticipantYou can change the height in your child themes style.css file by editing the height properties.
/* Header - Line 177 style.css file ------------------------------------------------------------ */ #header { background: url(images/bg-header.png); border-bottom: 5px solid #c61a1a; min-height: 100px; } /* Image Header - Partial Width Line 232 ------------------------------------------------------------ */ .header-image #header #title-area { background: url(images/logo.png) left top no-repeat; } .header-image #title-area, .header-image #title, .header-image #title a { display: block; float: left; height: 100px; overflow: hidden; padding: 0; text-indent: -9999px; width: 450px; } Or Hide the header completely #header { display: none; }
Brad DaltonParticipantHello Rita
Not exactly because these are different hooks
genesis_before_content_sidebar_wrap
genesis_after_content_sidebar_wrapDid you change the hook?
/** Add the welcome text section */ add_action( 'genesis_after_content_sidebar_wrap', 'custom_welcome_text' ); function custom_welcome_text() { genesis_widget_area( 'welcome-text', array( 'before' => '<div class="welcome-text widget-area">', ) ); }
Try the above code again and if you want another location, change the hook.
genesis_after_loop
/** Add the welcome text section */ add_action( 'genesis_after_loop', 'custom_welcome_text' ); function custom_welcome_text() { genesis_widget_area( 'welcome-text', array( 'before' => '<div class="welcome-text widget-area">', ) ); }
I tested all these hook locations and they all display the widget content above the genesis_before_footer hook.
Brad DaltonParticipantBrad DaltonParticipantBrad DaltonParticipantYou really should keep your titles as h21 for SEO purposes but if you want to change them on the archives you can use CSS.
Its actually displaying as h2 in your archives.
Brad DaltonParticipantLink to your site please.
Did you check the Genesis > Theme Settings > Content Archives
Brad DaltonParticipantChange the hook location in the code:
/** Add the welcome text section */ add_action( 'genesis_before_footer', 'custom_welcome_text' ); function custom_welcome_text() { genesis_widget_area( 'welcome-text', array( 'before' => '<div class="welcome-text widget-area">', ) ); }
Or use this:
/** Add the welcome text section */ add_action( 'genesis_after_content_sidebar_wrap', 'custom_welcome_text' ); function custom_welcome_text() { genesis_widget_area( 'welcome-text', array( 'before' => '<div class="welcome-text widget-area">', ) ); }
You can also reposition the footer widgets and change the hooks in this code also.
March 29, 2013 at 3:52 pm in reply to: Agency – Home Page – added a new widget, but not in separate box #31982Brad DaltonParticipantCannot use Firebug to inspect elements because you have no right click enabled. Please deactivate.
Brad DaltonParticipantO.k remove it and we'll use CSS to hide Adsense on all posts in a category. its a lot safer!!
Brad DaltonParticipantBrad DaltonParticipantAdd values to the margin property. http://www.w3schools.com/css/css_margin.asp
Code is tested and works.
I didn't test with conditionals because there's hundreds of variables.
Make sure the width of your ads is less than your content area width.
Brad DaltonParticipantDid you try this generator http://www.fontsquirrel.com/tools/webfont-generator.
Installing Webfonts
Webfonts are supported by all major browser platforms but not all in the same way. There are currently four different font formats that must be included in order to target all browsers. This includes TTF, WOFF, EOT and SVG.
1. Upload your webfonts
You must upload your webfont kit to your website. They should be in or near the same directory as your CSS files.
2. Include the webfont stylesheet
A special CSS @font-face declaration helps the various browsers select the appropriate font it needs without causing you a bunch of headaches. Learn more about this syntax by reading the Fontspring blog post about it. The code for it is as follows:
@font-face { font-family: 'aurulent_sansregular'; src: url('aurulentsans-regular-webfont.eot'); src: url('aurulentsans-regular-webfont.eot?#iefix') format('embedded-opentype'), url('aurulentsans-regular-webfont.woff') format('woff'), url('aurulentsans-regular-webfont.ttf') format('truetype'), url('aurulentsans-regular-webfont.svg#aurulent_sansregular') format('svg'); font-weight: normal; font-style: normal; }
We've already gone ahead and generated the code for you. All you have to do is link to the stylesheet in your HTML, like this:
<link rel="stylesheet" href="stylesheet.css" type="text/css" charset="utf-8" />
3. Modify your own stylesheet
To take advantage of your new fonts, you must tell your stylesheet to use them. Look at the original @font-face declaration above and find the property called "font-family." The name linked there will be what you use to reference the font. Prepend that webfont name to the font stack in the "font-family" property, inside the selector you want to change.
For example:p { font-family: 'WebFont', Arial, sans-serif; }
4. Test
Getting webfonts to work cross-browser can be tricky. Use the information in the sidebar to help you if you find that fonts aren't loading in a particular browser.
Troubleshooting
Font-Face ProblemsHaving trouble getting your webfonts to load in your new website? Here are some tips to sort out what might be the problem.
Fonts not showing in any browser
This sounds like you need to work on the plumbing. You either did not upload the fonts to the correct directory, or you did not link the fonts properly in the CSS. If you've confirmed that all this is correct and you still have a problem, take a look at your .htaccess file and see if requests are getting intercepted
http://www.fontspring.com/support/installing_webfonts/how-do-i-use-the-webfonts
Brad DaltonParticipantYou could filter it out on the homepage using a conditional tag in a custom function.
Just remember to copy that file locally so you can upload it when the plugin updates. Not really best practice.
Brad DaltonParticipantYou could also copy the page_landing.php template, rename it to page_custom.php, remove the remove actions and add your own.
<?php /** * This file adds a custom page template to the Executive Child Theme. * * @author StudioPress * @package Generate * @subpackage Customizations */ /* Template Name: Custom */ // Add custom body class to the head add_filter( 'body_class', 'executive_add_body_class' ); function executive_add_body_class( $classes ) { $classes[] = 'executive-custom'; return $classes; } // Add custom code here genesis();
Brad DaltonParticipantYou'd need to post this in the plugin forum and David will answer you quickly. Its to do with the plugin.
Brad DaltonParticipantTry the Genesis Layout Extra's plugin
Or you could add a new widget area using one of the full width genesis hooks with a conditional tag for the home page and drag in the featured page widget.
genesis_before_content_sidebar_wrap genesis_before_content genesis_after_content genesis_after_content_sidebar_wrap
Brad DaltonParticipantMarch 29, 2013 at 7:40 am in reply to: how to display whole image instead of just part of it in the homepage? #31910Brad DaltonParticipantYou can add a new image size to your child themes functions.php file:
add_image_size ( ‘custom’, 570, 285, TRUE );
Then select that for your featured posts images on the home page widgets for your posts.
-
AuthorPosts