Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter briefschreiben

    (@briefschreiben)

    Dear George,

    Thanks so much for your reply.
    Unfortunately, there’s no common pattern between my old and new URLs because I’ve added new subfolders for my pages, changed the permalink structure of blog posts, and tweaked other things.
    So what I’m searching for (and what I guess I erroneously called an SQL query) was exactly what you’re describing: A script to loop through all the old URLs individually, find each one in the database, and replace them with the new ones. Because as I said, I’ve got all source (old) and target (new) URLs lined up in an Excel already, and would just need some way of feeding them into WP.

    With best wishes,
    Lennart

    Thread Starter briefschreiben

    (@briefschreiben)

    Hm, I somehow don’t manage getting this to work.

    In my child theme folder on cPanel, I have added a page-{pagename}.php file which is a duplicate of the parent theme’s page.php file.

    To this, I have appended the following:

    global $my_class;
    remove_filter( 'the_content', 'the_excerpt', array($my_class, 'class_filter_function') );
    
    remove_filter( 'the_content', 'the_excerpt', 'wpautop' );

    and

    function child_theme_setup() {
    	remove_filter( 'excerpt_length', 'thb_supershort_excerpt_length' ); 
    }
    add_action( 'after_setup_theme', 'child_theme_setup' );

    (targeting directly ‘excerpt_length’, ‘thb_supershort_excerpt_length’ which have been used by my parent theme for the blog style the page is using)

    as suggested here in order to remove existing twists to the Read more button,

    and

    function new_excerpt_more($more) {
           global $post;
    	return '<a class="moretag" href="https://link.com"> Read article...</a>';
    }
    add_filter('excerpt_more', 'new_excerpt_more');

    in order to define a new target for the button which should now be called “Read article …”.

    Unfortunately, nothing has changed on the front end. What have I done wrong?

    • This reply was modified 5 years, 11 months ago by briefschreiben.
    • This reply was modified 5 years, 11 months ago by t-p.
    Thread Starter briefschreiben

    (@briefschreiben)

    Hey, thanks a lot for your suggestion!
    I will try this out once I have set up the Restrict Content Pro (which, quite straightforwardly, allows to hide and show certain pages to certain membership levels). So, I might be able to display a page with the_excerpt() to non-subscribers and a page with the_content() to logged in subscribers.
    Thanks again, I’ll keep you posted!

    Thread Starter briefschreiben

    (@briefschreiben)

    Dear Jan,

    thank you, I wasn’t aware of that – it is my first time posting here.

    So far, I built my site using GeneratePress, which is customisable but, from what I know, doesn’t allow for two navigation bars.

    I am therefore open to aquiring new themes or plugins with which I can have a top and left navbar at the same time. The site I’ll create will be basic and is mainly going to feature black text on a white background. I’m just looking for a minimalistic template, plugin or code insert option to have two navbars.

    Another option – if two navbars are impossible – would be a single top navbar that allows to align the page’s text content with the left side of the navbar, with still having the client’s logo on the very left (all top navbars I found are either centered or very right- or left-aligned.)

    Here’s a sketch I made to illustrate my thoughts.

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