This topic is: not resolved

use theme's template

  • loumou
    Participant
    Post count: 9
    # 9 months ago

    Hello,

    I went through your documentations at https://eventer.imithemes.com/documentation/#templates but I am stuck at step 3 as I am not sure whether there is a loopcode at all.

    on page.php of the theme I found the following

    on index.php i found the following code:

    According to your documentation, I should delete some code and add

    <?php echo eventer_content(); ?>

    instead. I am not really sure what is meant by that.

    Could you do me a favour and send me the newly created eventer.php which I just upload in the same folder where index.php and page.php can be found?

    My standard page template has a sidebar navigation and the full content on the left is not aligned to the very left and hits the border.

    I just want the detail page of an event to be correctly shown in my standard template.

    If it helps: I am using the EXTRA theme by elegant themes.

    Looking forward to hearing your answer.

    Cheers,

    Nitin SharmaNitin Sharma
    Moderator
    Post count: 10327
    # 9 months ago

    Hello

    You just need to replace
    require locate_template( &#039;index-content.php&#039; );
    extra_tax_layout();
    with
    echo eventer_content();
    I could provide you the file but the code is escaped and not able to use anymore, you should use pastebin or zip file here to upload.

    Thanks

    loumou
    Participant
    Post count: 9
    # 9 months ago

    <?php get_header(); ?>

    <div id=”main-content”>
    <div class=”container”>
    <div id=”content-area” class=”<?php extra_sidebar_class(); ?> clearfix”>
    <div class=”et_pb_extra_column_main”>
    <?php if ( is_search() ) { ?>
    <h1><?php printf( esc_html__( ‘Search Results for: %s’, ‘extra’ ), get_search_query() ); ?></h1>
    <?php } else if ( is_archive() && have_posts() ) { ?>
    <h1><?php the_archive_title(); ?></h1>
    <?php } ?>

    <?php if ( is_extra_tax_layout() ) { ?>
    <?php extra_tax_layout(); ?>
    <?php } else { ?>
    <?php require locate_template( ‘index-content.php’ ); ?>
    <?php } ?>
    </div>
    <?php get_sidebar(); ?>

    </div> <!– #content-area –>
    </div> <!– .container –>
    </div> <!– #main-content –>

    <?php get_footer();

    loumou
    Participant
    Post count: 9
    # 9 months ago

    the codes which should be replaced are not on the same line, so I am not sure….

    I hope you don’t mind providing me the file with the correct code now.

    What is left is to rename the file “eventer.php” and put it in the wp-admin folder, right?

    Nitin SharmaNitin Sharma
    Moderator
    Post count: 10327
    # 9 months ago

    Hello

    I have created eventer.php file for you.
    You just needt to place it in theme folder.
    https://d.pr/f/dePuC0

    Thanks

    loumou
    Participant
    Post count: 9
    # 8 months, 4 weeks ago

    Alright, so I put the file in the theme folder. What happens now:

    The widgets in the right sidebar are now just below the event content…

    Any idea how to fix this?

    Nitin SharmaNitin Sharma
    Moderator
    Post count: 10327
    # 8 months, 4 weeks ago

    Hello

    Please provide WP Credentials with admin URL in private reply, so that i could look into the issue.

    Thanks

    loumou
    Participant
    Post count: 9
    # 8 months, 4 weeks ago
    This reply has been marked as private.
    Nitin SharmaNitin Sharma
    Moderator
    Post count: 10327
    # 8 months, 4 weeks ago

    Thanks for the details, please provide details with administrator rights.

    Thanks

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.