• Hi,
    I just created an additional post page for the press release section of our website and I originally had issues changing the page title from the default “blog” to “press release”. I eventually found the code in the php files and changed the title of the page however the navigation title (which should be the same) is still called “blog” and not “press release”. How do I go about changing this? Here is a link to the page: http://www.ripplecg.com/press_release/. I am using the Avada theme and have an Avada Child theme.

    Thanks and if needed I could provide header.php code or index.php code.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi @ripplecg,

    Thanks for posting on the forum.

    Could you please share me the code of your header.php, index.php and functions.php files so that i can troubleshoot it?

    You can share me the code by uploading it on any of these websites http://pastebin.com/ , Dropbox, Google Drive etc. and posting its links here.

    Kind Regards,
    Vinod Dalvi

    Thread Starter ripplecg

    (@ripplecg)

    Hi Vinod,
    Thank you very much! I have pasted the header.php,index.php and functions.php files in the pastebin.com area. The names of the files are:

    Ripple CG for Vinod Dalvi : for Header.php code
    For Vinod Dalvi -> index.php: for Index.php code
    For Vinod Dalvi -> functions.php: for functions.php code

    Thanks!

    Thread Starter ripplecg

    (@ripplecg)

    I am not sure how pastebin works so hopefully you will receive the codes. Let me know if you do not see them.

    Thanks.

    Thread Starter ripplecg

    (@ripplecg)

    This might be easier: http://pastebin.com/g90zPSTq -> Header.php
    http://pastebin.com/pQzZGHjh -> Index.php
    http://pastebin.com/zuvx2BEq -> Functions.php

    Hi @ripplecg,

    Thanks for sharing the code.

    I checked the shared theme files and found the the breadcrumb is generated by calling the function themefusion_breadcrumb in the header.php file of your theme.

    This function is not declared in the functions.php file instead it is declared in the following file.

    /Avada/framework/custom_functions.php

    Could you please share me the code from the above file?

    Also tell me what code have you edited to change the page title from the default “blog” to “press release” and is the “press release” page child / parent page or stand alone page?

    Regards,
    Vinod Dalvi

    Thread Starter ripplecg

    (@ripplecg)

    Hi Vinod,
    Thank you for your reply. In the header.php file I originally had:

    <div class="page-title-container">
    		<div class="page-title">
    			<div class="page-title-wrapper">
    			<strong><h1><?php echo $data['blog_title']; ?></h1>
    </strong>			<?php if($data['breadcrumb']): ?>
    			<?php if($data['page_title_bar_bs'] == 'Breadcrumbs'): ?>
    			<?php themefusion_breadcrumb(); ?>
    			<?php else: ?>
    I changed that code to:
    <div class="page-title-container">
    		<div class="page-title">
    			<div class="page-title-wrapper">
    			<strong><h1><?php the_title(); ?></h1>
    </strong>			<?php if($data['breadcrumb']): ?>
    			<?php if($data['page_title_bar_bs'] == 'Breadcrumbs'): ?>
    			<?php themefusion_breadcrumb(); ?>
    			<?php else: ?>
    			<?php get_search_form(); ?>
    			<?php endif; ?>

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    Which file is this: /Avada/framework/custom_functions.php? Where can I find it? I edited the parent Avada page but if that is causing error, I can put my original code back in and edit the child theme.

    My goal for that page is to have a new “media section” (haven’t created yet but will be located at the top of the page with the home, about…) with two drop down tabs, one that will be focused on press release and the other blog. The media section would have articles from both.

    I hope this helps!

    Thread Starter ripplecg

    (@ripplecg)

    To add a quick question, when I make drastic changes (which I plan to do for pictures and more), is it recommended to edit the child theme or the parent theme? I have an Avada child theme but I only have a few php files including: functions.php, single-avada_portfolio.php and style.css. The functions.php is an empty file. As of now, I have been editing the parent theme.

    Thanks and sorry that it is a little off topic but maybe that is why I have errors showing up.

    is it recommended to edit the child theme or the parent theme

    Child theme – every time. 🙂

    Hi @ripplecg,

    Thank you for your reply.

    It seems some issue in your shared code try changing your latest modified code as following.

    Before Editing:

    <strong><h1><?php the_title(); ?></h1></strong>

    After Editing:

    <strong><h1><?php echo $data['blog_title']; ?></h1></strong>

    You should always try to make changes in the child theme so that if you update your parent theme then you will not lose it.

    Cheers,
    Vinod Dalvi

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Site navigation title is not the same as page title’ is closed to new replies.