Forum Replies Created
-
AuthorPosts
-
jackirtMember
Hi Brad,
I haven't written any code or script yet - I was just curious if it was possible to add "location" to a blog post in the entry header. (alongside the date or categories)
jackirtMemberYes I understand that.
I need a piece of code that goes something like this:
//* Reposition Title Area
if ( max-width 960px() ) {
add_action( 'genesis_header', 'genesis_do_header' );
} else {
remove_action( 'genesis_header', 'genesis_do_header' );
add_action( 'genesis_before_sidebar_widget_area', 'genesis_site_title' );
add_action( 'genesis_before_sidebar_widget_area', 'genesis_site_description' );
}I can't add the add_action statements in CSS
jackirtMemberThis is just the best way for me to design my theme is all. The header gets in the way with the fixed sidebar, and the code I listed above works perfectly fine with how it's currently set up.
I was just wondering if there is a conditional tag for the ipad landscape, or if there is a way to target it with a width.
jackirtMemberActually I've got it to work.
Thanks!
jackirtMemberHi Victor,
I've tried writing a code that contains that bit of code, but with my little knowledge, the code I've written ends up breaking my site or not doing anything.
What should I adjust out of this code?
//* Reposition Title Area remove_action( 'genesis_header', 'genesis_do_header' ); add_action( 'genesis_before_sidebar_widget_area', 'genesis_site_title' ); add_action( 'genesis_before_sidebar_widget_area', 'genesis_site_description' ); if ( wp_is_mobile() ) { remove_action( 'genesis_before_sidebar_widget_area', 'genesis_site_title' ); remove_action( 'genesis_before_sidebar_widget_area', 'genesis_site_description' ); add_action( 'genesis_header', 'genesis_do_header' ); }
jackirtMemberjackirtMemberHi Victor,
I know it sounds weird what I'm trying to accomplish, but you can see a perfect example here in the WordPress twentyfifteen theme.
https://wordpress.org/themes/twentyfifteen/
They have left sidebar filled with widgets that extend past the view of the page, however when you scroll the content, the sidebar begins to scroll with the content, but fixes once the last widget has been reached.
Jaclyn
March 26, 2016 at 11:39 am in reply to: Auto-size Site Title text to fill fixed size container #182296jackirtMemberHi Brad,
Just code that came up from a quick google search. Stuff like this:
http://wordpress.stackexchange.com/questions/55509/automatically-decrease-font-size-for-long-words
http://stackoverflow.com/questions/687998/auto-size-dynamic-text-to-fill-fixed-size-container
I'm not that experienced with jQuery, and maybe these hold my answer, but I'd like to target only the Site Title text, nothing else.
Jaclyn
jackirtMemberThis reply has been marked as private.jackirtMemberHi Doug,
Thanks for your reply!
I'm still confused.. you said "So the site likely has inline styles declared within the text editor. See example below. You would need to remove these inline styles to prevent them from overriding the theme's styling."
How do I remove these styles?
Jaclyn
jackirtMemberI'll look into that option, to see what I can achieve. Thanks Brad!
jackirtMemberHi Brad,
Thanks for your reply!
I have both the masonry layout and even odd post styling, but I'm curious if there is a way I can implement an even/odd styling within the even odd posts?
Ex: Odd Post 1 width is 90% with padding left 20px (odd), Odd Post 2 width is 70% with padding bottom 10px (even)
I'm looking for a bit of a random look on the homepage, versus a consistent padding or size with the posts.(Hopefully this makes sense !)
jackirtMemberHi Christoph,
Thanks for your suggestion! However I'm looking for how to achieve that effect myself.
I'm playing around with designing my own theme and would like to know how to go about building a theme in that style.
If you have any knowledge or tutorials that could point me in the right direction would be appreciated!Jaclyn
jackirtMemberHi Porter,
Thanks for your response. Do I add this to my post.php file?
I found this code before but wasn't 100% sure of where to place it.jackirtMemberWhat exact code from my header would I need to copy? And where would I find that?
-
AuthorPosts