Forum Replies Created

Viewing 15 replies - 1 through 15 (of 24 total)
  • Thread Starter f3rdal

    (@f3rdal)

    No matter how I turn and twist it, I have no way in this theme to assign templates to a page and edit them (not in the site editor) through the page editor. It’s not possible. Indeed, it is a pity. Truly a disappointment.

    Thread Starter f3rdal

    (@f3rdal)

    I’m sorry if it sounds very confusing.

    I’m just as confused when it comes to block themes.

    Let me try to explain it to you.

    1. Settings: Assigning the respective pages
    1. Home Page Template: Assigning a page to a page template
    1. Blog Home Template: Assigning the blog overview page to the home template (which cannot be edited or modified unless you edit the template itself! But you don’t want to do that because it’s a mistake.)

    I would like to show you the pictures that document my problem, but I am not allowed to upload them.

    As for your question, no, I haven’t inserted the content into the template, and I know that would be a mistake. The video also demonstrates that, by the way.

    Can you help me navigate through this jungle and tell me how I can use the theme I like?

    • This reply was modified 1 year, 6 months ago by f3rdal.
    Thread Starter f3rdal

    (@f3rdal)

    Thank you very much for your reply.

    Unfortunately I can’t give you a link as I am currently testing the theme locally and looking into block themes.

    I am not sure if I understood your question correctly. I will try to explain it to you again:

    I created the pages “Home,” “Blog,” “About,” and “Contact.” Under Settings > Reading, I then assigned the static page for “Home” and the posts area to the “Blog” page.

    Now when I click on Home in my navigation, a blank page template opens.

    When I click on Blog, it opens the template, which I think should be the front page for the home page.

    If I set up a “new” Frontpage as the home page in the website editor, then I get the correct template. The front page “Home” is displayed with this template. But if I now want to edit this page via “Edit page” then I get a blank page with the page template. Do you understand what I mean?

    The problem with the “wrong assignments” demonstrates also this video: https://youtu.be/RsFMHafzUz4?t=93

    Many thanks!

    • This reply was modified 1 year, 6 months ago by f3rdal.
    Thread Starter f3rdal

    (@f3rdal)

    I posted the question on Github: https://github.com/brainstormforce/astra/issues/5040 To the forum admin: Please delete the question.

    Thread Starter f3rdal

    (@f3rdal)

    Thank you very much. It was a mixture of inattention and haste that led me again and again to the error. After you gave me the right hints, my custom feed is now working. Thank you very much and have a nice day.

    Thread Starter f3rdal

    (@f3rdal)

    I have now installed another and new wordpress sandbox that is not in the VPN network – so reachable from the outside. I get the following error message from the w3c-feed-validator:

    This feed does not validate.

    • Server returned HTTP Error 500: Internal Server Error [help]
    • line 1, column 0: Undefined root element: error [help]<error>

    In addition, interoperability with the widest range of feed readers could be improved by implementing the following recommendation.

    • “text/xml” media type is not specific enough [help]

    I do not know where the error is.

    Thats my rss-custom-feed-code:

    <?php
    /**
     * Template Name: Custom RSS Template - myfeed
     */
    $postCount = 5; // The number of posts to show in the feed
    $posts = query_posts('showposts=' . $postCount);
    header('Content-Type: '.feed_content_type('rss-http').'; charset='.get_option('blog_charset'), true);
    echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>';
    ?>
    <rss version="2.0"
            xmlns:content="https://purl.org/rss/1.0/modules/content/"
            xmlns:wfw="https://wellformedweb.org/CommentAPI/"
            xmlns:dc="https://purl.org/dc/elements/1.1/"
            xmlns:atom="https://www.w3.org/2005/Atom"
            xmlns:sy="https://purl.org/rss/1.0/modules/syndication/"
            xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
            <?php do_action('rss2_ns'); ?>>
    <channel>
            <title><?php bloginfo_rss('name'); ?> - Feed</title>
            <atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" />
            <link><?php bloginfo_rss('url') ?></link>
            <description><?php bloginfo_rss('description') ?></description>
            <lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></lastBuildDate>
            <language><?php echo get_option('rss_language'); ?></language>
            <sy:updatePeriod><?php echo apply_filters( 'rss_update_period', 'hourly' ); ?></sy:updatePeriod>
            <sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency>
            <?php do_action('rss2_head'); ?>
            <?php while(have_posts()) : the_post(); ?>
                    <item>
                            <title><?php the_title_rss(); ?></title>
                            <link><?php the_permalink_rss(); ?></link>
                            <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false); ?></pubDate>
                            <dc:creator><?php the_author(); ?></dc:creator>
                            <guid isPermaLink="false"><?php the_guid(); ?></guid>
                            <description><![CDATA[<?php the_excerpt_rss() ?&>></description>
                            <content:encoded><![CDATA[<?php the_excerpt_rss() ?&>></content:encoded>
                            <?php rss_enclosure(); ?>
                            <?php do_action('rss2_item'); ?>
                    </item>
            <?php endwhile; ?>
    </channel>
    </rss>
    • This reply was modified 1 year, 9 months ago by f3rdal.
    Thread Starter f3rdal

    (@f3rdal)

    One thing just caught my attention during testing. If I change the name of the template (and the name in the functions.php), as you suggested, from “feed-feedname” to “rss-feedname” and then call it as follows?https://my-url/feed/feedname, I still get an empty file but this time without the .dms at the end.

    Thread Starter f3rdal

    (@f3rdal)

    Thank you for your response and for assisting me. I have updated the permalinks multiple times. The WordPress website is a sandbox and is actually not accessible from the internet but only within the VPN network. I am also located within the VPN network with my computer and can retrieve the normal RSS feed under these network conditions. Regarding the template, I want to double check and ask you again. I have placed the template for the second feed in the “template-parts” folder within the active theme. The functions.php refers to this template. Is this correct?

    Thread Starter f3rdal

    (@f3rdal)

    Thank you

    Thread Starter f3rdal

    (@f3rdal)

    Thanks for the tip. It was indeed due to the language. It is also strange that it was correct after the installation. After we created some interactive videos it was displayed broken.

    Thread Starter f3rdal

    (@f3rdal)

    Hello, unfortunately I cannot show you the site because it is under development. I have changed the code structure after a long time of trial and error – actually there shouldn’t be any difference, but there was.
    Now it works with the accordions – thanks for your help

    jQuery(document).ready(function () {
    
    	jQuery('.lwptoc_item > .lwptoc_itemWrap').hide().before('<b class="tocToggle tocToggle-hidden"></b>');
    	jQuery('.tocToggle').click(function () {
    		var $this = jQuery(this),
    			$el = jQuery(this).next();
    		if ($this.hasClass('tocToggle-hidden')) {
    			$el.show();
    			$this.removeClass('tocToggle-hidden')
    		} else {
    			$el.hide();
    			$this.addClass('tocToggle-hidden')
    		}
    	});
    	
    })
    Thread Starter f3rdal

    (@f3rdal)

    Unfortunately your script/css does not work. The accordion is not visible on the page. I call the script after jquery was loaded. Too bad ??

    Thread Starter f3rdal

    (@f3rdal)

    Thank you very much. Let me try the code.

    Thread Starter f3rdal

    (@f3rdal)

    Thanks for the advice. Unfortunately I don’t have a JS developer who can support me currently. Too bad ??

    Thread Starter f3rdal

    (@f3rdal)

    That seems logical to me. How do I put your short code into this JS? How can I make sure that the accordion works with every TOC.

Viewing 15 replies - 1 through 15 (of 24 total)