Home › Forums › Calendar Products › Events Calendar PRO › Event title on Events list page – Elegant Themes Nimble
- This topic has 7 replies, 3 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
March 25, 2013 at 3:08 pm #44009
kevin
ParticipantWe have the Event Title on Events List Page problem. I’ve looked at and worked on the “Calendar Page Title shows the title of an event…” FAQ.
We are using the Elegant Themes – Nimble for our site. After searching several theme files I found the file that drives the title in headers for Nimble is a file called top_info.php –
I’ve tried several different permutations of your instructions to set up a way to push the Events in rather than that title of the most current event but so far, I’ve been unable to defeat the Nimble system. I’m sure at this point I’m not changing the theme variable $et_page_title at the right point, but I haven’t been able to get the logic changed successfully.
The Events List page displays at http://techranchaustin.com/events/upcoming/
Any suggestions?
The area of top_info.php I am trying to use to change behavior reads:get_queried_object();
$et_page_title = esc_html__(‘Posts by ‘,’Nimble’) . $curauth->nickname;
} elseif ( is_page() || is_single() ) {
$et_page_title = get_the_title();
if ( is_page() ) $et_tagline = get_post_meta(get_the_ID(),’Description’,true) ? get_post_meta(get_the_ID(),’Description’,true) : ”;
} elseif ( is_tax() ){
$et_page_title = single_term_title( ”, false );
$et_tagline = term_description();
}
?>array() ) ); ?>
<?php if ( $et_tagline ” ) { ?>
array() ) ); ?><?php
if ( is_single() && 'project' != get_post_type( get_the_ID() ) ) {
$single_postinfo = et_get_option( 'nimble_postinfo2' );
if ( $single_postinfo && have_posts() ) {
the_post();echo '’;
et_postinfo_meta( $single_postinfo, et_get_option(‘nimble_date_format’), esc_html__(‘0 comments’,’Nimble’), esc_html__(‘1 comment’,’Nimble’), ‘% ‘ . esc_html__(‘comments’,’Nimble’) );
echo ”;rewind_posts();
}
}
?>March 25, 2013 at 3:12 pm #44011Jonah
ParticipantHi Kevin,
We have pretty crappy code pasting capabilities here still. Can you please share your code on http://snippi.com/
Additionally it might help if you could provide me with the theme for evaluation/testing purposes. You post with https://droplr.com/hello and then share through the private reply function below.
Thanks,
JonahMarch 25, 2013 at 3:12 pm #44012kevin
ParticipantIt appears my best effort to post code has gone a bit off. Once again:
get_queried_object();
$et_page_title = esc_html__(‘Posts by ‘,’Nimble’) . $curauth->nickname;
} elseif ( is_page() || is_single() ) {
$et_page_title = get_the_title();
if ( is_page() ) $et_tagline = get_post_meta(get_the_ID(),’Description’,true) ? get_post_meta(get_the_ID(),’Description’,true) : ”;
} elseif ( is_tax() ){
$et_page_title = single_term_title( ”, false );
$et_tagline = term_description();
}
?>array() ) ); ?>
<?php if ( $et_tagline ” ) { ?>
array() ) ); ?><?php
if ( is_single() && 'project' != get_post_type( get_the_ID() ) ) {
$single_postinfo = et_get_option( 'nimble_postinfo2' );
if ( $single_postinfo && have_posts() ) {
the_post();echo '’;
et_postinfo_meta( $single_postinfo, et_get_option(‘nimble_date_format’), esc_html__(‘0 comments’,’Nimble’), esc_html__(‘1 comment’,’Nimble’), ‘% ‘ . esc_html__(‘comments’,’Nimble’) );
echo ”;rewind_posts();
}
}
?>Hopefully that will give you all the information…
March 25, 2013 at 3:24 pm #44013kevin
ParticipantOk then – here is the droplr link http://d.pr/f/b646
the code itself is in the /includes directory and on Snippy at http://snippi.com/s/bhj5oar
Hope this helps. Thank you so much.
March 25, 2013 at 3:56 pm #44015Jonah
ParticipantMarch 25, 2013 at 4:25 pm #44016kevin
ParticipantYes! I need to make a few small changes to the way the events list title reads, but with this – no problem.
Thanks so much!
March 26, 2013 at 5:50 am #44056Jonah
ParticipantYou’re welcome Kevin! Let us know if there’s anything else you need help with.
– Jonah
July 7, 2015 at 6:26 am #978858Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Event title on Events list page – Elegant Themes Nimble’ is closed to new replies.
