Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter ifelarry

    (@ifelarry)

    WOW!!!!!!!!!!!….
    d4z_c0nf the problem solver has perfectly resolved my issue.
    Mehn…. you are good. Thanks a bunch.

    Thread Starter ifelarry

    (@ifelarry)

    Thanks for your help. I’m really grateful.
    I’ll be patiently waiting till you are back.

    Thread Starter ifelarry

    (@ifelarry)

    YES! Thanks man… You are a problem solver.
    The code worked like magic. I’ve been able to adjust it a bit changing the offset and the span to something better than what i wanted initially.

    Talking about the pagination thingy, I have tried to disable all my plugins but no difference. Do you think i should delete and re-download the theme?

    How ever, Its not compulsory the pagination “nextpage or page2” looks exactly like what i want. I just want something far better than what i have at present so that people will know they should click for the next page.

    Furthermore, is it possible to move the page numbers up to immediately after the post because they show up after my related content and sharing buttons if it is activated. this is an example

    Please pardon my plenty issues.

    Thread Starter ifelarry

    (@ifelarry)

    Thanks for the response. I believe you will eventually help me thru.
    I didn’t make any changes in the core files that i can remember (infact i’m a novice).

    Or do you think i should delete the theme and re-download it?
    Or is it possible a pluggin is messing with me?
    Please can we still resolve the problem even if i don’t know the changes i’ve made?
    However, these are the changes i have in the function.php of my child’s theme.

    //modify footer credits
    add_filter('tc_credits_display', 'my_custom_credits');
    function my_custom_credits(){
    $credits = '<a title="Terms of Service" href="https://naturalhealthbag.com/terms-of-service/">Terms of Service</a> | <a title="Privacy Policy" href="https://naturalhealthbag.com/privacy-policy/">Privacy Policy</a> | <a title="Sitemap" href="https://naturalhealthbag.com/sitemap/">Sitemap</a>';
    $newline_credits = '<em>* These statements have not been evaluated by the Food and Drug Administration. The material on this site is provided for informational purposes only and not medical advice. Always consult your physician before beginning any diet or exercise program.</em>';
    return '
    <div class="span4 credits">
                        <p> &middot; &copy; '.esc_attr( date( 'Y' ) ).' '.esc_attr(get_bloginfo()).' &middot; '.($credits ? $credits : 'Designed by <a href="https://www.themesandco.com/">Themes & Co</a>').' &middot;'.($newline_credits ? '<br />&middot; '.$newline_credits.' &middot;' : '').'</p>        </div>';
    }
    
    //remove comments html tags
    add_filter('comment_form_defaults' , 'remove_allowed_html_tags_note', 30);
    function remove_allowed_html_tags_note( $defaults ) {
        //returns the modified array
        return array_replace( $defaults, array('comment_notes_after' => '' ) );
    }
    //place yellowbox on pages using shortcode
    function make_yellowbox($atts, $content = null) {
       return '<p style="background: none repeat scroll 0 0 #ff9; clear: both; margin-bottom: 18px; overflow: hidden; border: 1px solid #e5e597; padding: 13px;">' . do_shortcode($content) . '</p>';
    }
    add_shortcode('yellowbox', 'make_yellowbox');
    
    // Adds a widget area.
    if (function_exists('register_sidebar')) {
     register_sidebar(array(
     'name' => 'Extra Header Widget Area',
     'id' => 'extra-widget-area',
     'description' => 'Extra widget area after the header',
     'before_widget' => '<div class="widget my-extra-widget">',
     'after_widget' => '</div>',
     'before_title' => '<h2>',
     'after_title' => '</h2>'
     ));
    }
    // Place the widget area after the header
    add_action ('__after_header', 'add_my_widget_area', 10);
    function add_my_widget_area() {
     if (function_exists('dynamic_sidebar')) {
     dynamic_sidebar('Extra Header Widget Area');
     }
    }

    Also, Dont forget the theme width, if there is a way i can make it look exactly the way it looks in my natural health blog without using the left side bar

    Plenty thanks

    Thread Starter ifelarry

    (@ifelarry)

    Wow!
    Thanks a bunch. I copied it directly from what you typed and it worked.
    Probably my mistake was from typing

    Thread Starter ifelarry

    (@ifelarry)

    Thanks d4z_conf,
    But that didn’t work for me.
    Here is an example of the natural health post i want to paginate

Viewing 6 replies - 1 through 6 (of 6 total)