Tagged: ,

Viewing 15 posts - 31 through 45 (of 45 total)
  • Author
    Posts
  • #514910

    Furthermore, it is now really confusing for me to figure out. Just help me with this. I will tell in steps:
    In the beginning, mistakenly, I added the following code to functions-enfold.php (dont worry, I wont add anything there anymore)
    This is the code:
    add_filter(‘avf_blog_style’,’avia_change_category_blog_layout’, 10, 2);
    function avia_change_category_blog_layout($layout, $context){
    if($context == ‘archive’) $layout = ‘single-small’;
    return $layout;
    }

    This code is still in functions-enfold.php SHOULD I remove it and insert it in functions.php?

    After this code, I added the following to functions.php (I have not deleted the previous one from functions-enfold.php)

    add_filter(‘avia_layout_filter’, ‘avia_change_post_layout’, 10, 2);
    function avia_change_post_layout($layout, $post_id){
    if(is_tax(‘portfolio_entries’)) {
    $layout[‘current’] = $layout[“fullsize”];
    $layout[‘current’][‘main’] = “fullsize”;
    }

    return $layout;

    }

    SHOULD I replace it with the following?
    add_filter(‘avia_layout_filter’, ‘avia_change_post_layout’, 10, 2);
    function avia_change_post_layout($layout, $post_id){
    if(is_tax(‘portfolio_entries’) || is_tag()) {
    $layout[‘current’] = $layout[“fullsize”];
    $layout[‘current’][‘main’] = “fullsize”;
    }

    return $layout;
    }

    #514912

    continued…
    How many line space should be there between codes? 2 or 3?

    Thanks
    Xn

    #514914

    Last, can I send you the functions.php anyhow so you can see if any head is missing?

    #514930

    Hey!

    Do you have the ftp details? You have to remove the code on functions-enfold.php file. All the codes we suggested should go in the functions.php file. Yes, you should replace the final code with the latest code we provided. The final code should look something like this:

    add_filter(‘avf_blog_style’,’avia_change_category_blog_layout’, 10, 2);
    function avia_change_category_blog_layout($layout, $context){
    if($context == ‘archive’) $layout = ‘single-small';
    return $layout;
    }
    
    add_filter(‘avia_layout_filter’, ‘avia_change_post_layout’, 10, 2);
    function avia_change_post_layout($layout, $post_id){
    if(is_tax(‘portfolio_entries’) || is_tag()) {
    $layout[‘current’] = $layout[“fullsize”];
    $layout[‘current’][‘main’] = “fullsize”;
    }

    Cheers!
    Ismael

    #516139

    Hello, I did what you asked and now this is what I get when I open my site or try wp-admin:

    Parse error: syntax error, unexpected ”; ‘ (T_ENCAPSED_AND_WHITESPACE) in /home3/xandrianoir/public_html/www.xandrianoir.com/wp-content/themes/enfold/functions.php on line 525

    What’s happening?
    Please solve it.
    Thanks
    XN

    xandrianoir.com

    #516145

    I have deleted the both codes you sent me to enter in functions.php because they shut down the site with the error I sent you just now.

    Now I have only added the following which was sent to me first:

    add_filter(‘avf_blog_style’,’avia_change_category_blog_layout’, 10, 2);
    function avia_change_category_blog_layout($layout, $context){
    if($context == ‘archive’) $layout = ‘single-small’;
    return $layout;
    }

    The site is up again but wp-admin is still giving this error:

    Warning: Cannot modify header information – headers already sent by (output started at /home3/xandrianoir/public_html/www.xandrianoir.com/wp-content/themes/enfold/functions-enfold.php:1) in /home3/xandrianoir/public_html/www.xandrianoir.com/wp-includes/pluggable.php on line 1207

    PLEASE tell me ‘header already sent’. I have to log in. Please review entire thread and see where things went wrong. I worked too hard to make this site. I can’t afford to lose it.

    Regards,
    XN

    #516147

    Hey!

    We already asked you several times to send the login credentials including the FTP details but you seem to be ignoring it. If you’re not comfortable with us knowing your login credentials, all you have to do is to override the functions.php and functions-enfold.php file with a fresh copy. After that, you can add the suggested code in this post: https://kriesi.at/support/topic/blog-categories-6/page/2/#post-514930

    Also make sure that you copy the codes right from the forum, not from your email. Thank you.

    Cheers!
    Ismael

    #516153

    Ismael, I am not ignoring it but I thought that without wp-admin page opening you wont access it. I had to change the password first. Below are the details. (I have asked the server team to fix the login.Please just see into ‘read more’ issue.)

    Also, I guess override will remove all my work and customization. (I guess) so please don’t do that.

    Do you need the details for cpanel of server too?

    Regards,

    • This reply was modified 8 years, 6 months ago by xa1970.
    #516257

    Hi!

    All you need to do is to override two specific files (functions.php and function-enfold.php) unless you added a few modifications that we don’t know of. All the suggestions prior to this issue is for the functions.php but you added one function inside the function-enfold.php file and then add a duplicate function instead of overriding the old one which is a common mistaken so you don’t have to worry. Since we can’t access the site via wp-admin, we will need the ftp details. Please post it as well.

    EDIT: I was able to access the dashboard and added the code in the functions.php file. So far, no issues.

    Regards,
    Ismael

    #516263

    Thank you Ismael for your support.

    Unfortunately, now the blog sidebar is gone :( http://xandrianoir.com/blog-and-reviews/

    Also, ‘read more’ still doesn’t open.

    Regards,
    XN

    #516771

    Hi!

    My bad. Something is missing in the code. You can check it now: http://xandrianoir.com/blog-and-reviews/

    NOTE: I disabled the W3 Total Cache temporarily. You can enable it back.

    Regards,
    Ismael

    #516807

    Hey Ismael, once again, thanks a lot for your support and working diligently on my thread.

    Did you click on ‘read more’ on my blog? I checked just now; it’s still not opening the post full. Also, earlier, whatever the code you guys sent me, made the featured image on blog small keeping it on the side of the post (as single author view) on main blog page. Now it is big again.

    Can you please have a look at it again?

    LOL, I guess you will have to spoil your weekend on this, one more time.

    Regards,
    XN

    #517133

    Hi!

    I’m sorry I forgot about that issue entirely. I refresh the loop-index.php file and it looks OK now: http://xandrianoir.com/2015/10/04/ethically-locked-up/

    Use the Excerpt box or the more tag to specify an excerpt in the blog overview page: https://en.support.wordpress.com/more-tag/

    Cheers!
    Ismael

    #517830

    Hello Ismael,

    When I made the blog at first, I set it to ‘single author’ in the blog element in page layout. It opened the blog page with thumbnail of featured images on the left of the ‘title’ of each post. Below title was the excerpt with ‘read more’. Clicking on ‘read more’ or ‘title’ opened the post as single page.

    Now, all the posts are open on the main blog page. There is no ‘read more’ at all. And the featured image has come on the top of title.

    I need to revert to the design I made first. Can you please see into it?

    Regards,
    XN

    #518071

    Hi!

    Alright. We revert the blog style to single author, small preview. Regarding the excerpt, you have to use the more tag or the excerpt box. Please create a new thread if you have more questions because this one is getting a bit too long. We’ll close the thread for now.

    Regards,
    Ismael

Viewing 15 posts - 31 through 45 (of 45 total)
  • The topic ‘Blog Categories’ is closed to new replies.