Forum Replies Created
-
AuthorPosts
-
December 23, 2016 at 7:50 am in reply to: How to use featured post thumbnail as entry background #198038
D. van de Kamp
Participantfollowing thread...
D. van de Kamp
ParticipantSo for anyone looking for a sollution. I finally found a work around to accomplish what I wanted. Here's the code:
/**
* Move the title just after the header:
*/
add_action( 'genesis_after_header', 'dvdk_create_entry_title_banner' );
function dvdk_create_entry_title_banner() {if ( is_post_type_archive( 'news' ) || is_singular( 'news' ) )
$parent_title='News';
elseif ( is_post_type_archive( 'projects' ) || is_singular( 'projects' ) )
$parent_title='Projects';
elseif ( is_post_type_archive( 'student-assignments' ) || is_singular( 'student-assignments' ))
$parent_title='Student assignments';
else
$parent_title = get_the_title( $post->post_parent );
echo '<div class="title-bar">';
echo '<div class="wrap title-bar-inner">';
echo $parent_title ;
echo '</div></div>';
}D. van de Kamp
ParticipantAnyone else able to help? So what I want is for the custom post types "news, projects and student assignments" that the page title just below the header always shows "news, projects or student assignments" even when I go to a deeper level.
But for the deeper level I also still want the post title just above the content.So e.g. Header with navigation, then bar with title 'News' then content area with title of the news item, then content of news item.
D. van de Kamp
ParticipantThanks, but for some reason it keeps using the last added post as the page title for the archive page and it keeps adding the post title in the title bar. So that didn't work for me unfortunately
D. van de Kamp
ParticipantThat totally solved it! Just went to the permalinks, did nothing but hit 'save' and problem was solved.
I'm very grateful for that!D. van de Kamp
ParticipantBut you are right, I'll contact the developers. Thanks for your time Brad.
D. van de Kamp
ParticipantThey are in the head section.
</style>
<link rel='stylesheet' id='open-sans-css' href='//fonts.googleapis.com/css?family=Open+Sans%3A300italic%2C400italic%2C600italic%2C300%2C400%2C600&subset=latin%2Clatin-ext&ver=4.2.2' type='text/css' media='all' />
<link rel='stylesheet' id='dashicons-css' href='http://localhost:8888/devlab/wp-includes/css/dashicons.min.css?ver=4.2.2' type='text/css' media='all' />
<link rel='stylesheet' id='admin-bar-css' href='http://localhost:8888/devlab/wp-includes/css/admin-bar.min.css?ver=4.2.2' type='text/css' media='all' />
<link rel='stylesheet' id='google-fonts-css' href='//fonts.googleapis.com/css?family=Titillium+Web%3A400%2C600%2C300%2C700%2C300italic%2C400italic&ver=2.1.2' type='text/css' media='all' />
<link rel='stylesheet' id='upw_theme_standard-css' href='http://localhost:8888/devlab/wp-content/plugins/ultimate-posts-widget/css/upw-theme-standard.min.css?ver=4.2.2' type='text/css' media='all' />
<link rel='stylesheet' id='genesis-sample-theme-css' href='http://localhost:8888/devlab/wp-content/themes/devlab/style.css?ver=2.1.2' type='text/css' media='all' />
<link rel='stylesheet' id='event-list-css' href='http://localhost:8888/devlab/wp-content/plugins/event-list/includes/css/event-list.css?ver=4.2.2' type='text/css' media='all' />
<link rel='stylesheet' id='slider_styles-css' href='http://localhost:8888/devlab/wp-content/plugins/genesis-responsive-slider/style.css?ver=0.9.2' type='text/css' media='all' />D. van de Kamp
ParticipantHi Brad,
Thanks for your reply. This way I can pass all the stylesheets, except for two plugins: event-list and responsive slider. Even when I use a value of 500 instead of 15. Weird, isn't it. Any ideas on that?
October 3, 2014 at 5:44 am in reply to: Weird: frontpage showing all pages and posts in long list #126658D. van de Kamp
ParticipantOkay, thanks, I'll try that.
D. van de Kamp
ParticipantOkay, thank, so it would be a matter of adding a text widget into a widget area, creating a list in that text area and then CSS the ul into icons?
-
AuthorPosts