Verfasste Forenbeiträge

Ansicht von 9 Antworten - 1 bis 9 (von insgesamt 9)
  • Forum: Themes
    Als Antwort auf: Tesseract Theme Widget in Header

    As I understand the polylang language switcher, it can be implemented via at least three distinct methods:

    1. menu item
    2. widget
    3. php code insertion

    I got it from here: http://tyler.com/tesseract-theme/

    Regarding theme Tessarct, my knowledge is limited. I found it not facile to create sophisticated polylang setup with language specific menu for each language. So for that theme best to check the support might be available from Tyler Moore, the theme author. And since you have English, you might find a greater knowledge base in the english theme forum: https://wordpress.org/support/forum/themes-and-templates

    However, I have been able to do what I wanted rather easily with polylang integrated into theme TwentyFifteen , and it demonstrates the difference between the menu item and the widget implementations:

    http://wpmulti.org/
    __________________
    https://translate.google.com

    Als ich die Polylang Sprachumschalter verstehen, kann diese über mindestens drei verschiedene Methoden realisiert werden:

    1. Menüpunkt
    2. Widget
    3. PHP-Code Insertion

    Ich habe es von hier: http://tyler.com/tesseract-theme/

    In Bezug auf Thema Tessarct, mein Wissen begrenzt. Ich fand es nicht leicht, anspruchsvolle Polylang Setup mit sprachspezifischen Menü für jede Sprache erstellen. So für dieses Thema am besten, um zu überprüfen der Träger könnte die von Tyler Moore, dem Thema Autor sein. Und da Sie Englisch haben, können Sie eine größere Wissensbasis im Englisch Thema Forum zu finden: https://wordpress.org/support/forum/themes-and-templates

    Allerdings habe ich in der Lage zu tun, was ich wollte, und nicht einfach mit Polylang in Thema TwentyFifteen integriert und die Differenz zwischen dem Menüpunkt und den Widget-Implementierungen veranschaulicht:

    http://wpmulti.org/

    Forum: Themes
    Als Antwort auf: Tesseract Theme Widget in Header

    Theme Tesseract is robust and sophisticated. I am reluctant to suggest direct modifications to theme files at this time.

    I’ve integrated the Polylang language switcher at three locations in theme Tesseract, all without editing any theme files. In the header and footer as a menu item, in the sidebar as a widget.

    Please see http://wpmulti.org/
    And be sure to browse around and see the display modifications for various display types: index, static page, category archive, and single post.

    https://translate.google.com
    Theme Tesseract ist robust und anspruchsvoll. Es widerstrebt mir, direkte Änderungen an Stildateien zu diesem Zeitpunkt vor.

    Ich habe die Polylang Sprachumschalter an drei Standorten in Thema Tesseract, integriert alle ohne Bearbeitung keine Designdateien. In der Kopf- und Fußzeile als Menüpunkt in der Seitenleiste als Widget.

    Bitte beachten Sie http://wpmulti.org/
    Und achten Sie darauf, um zu sehen und sehen die Anzeige Modifikationen für verschiedene Darstellungsarten: index, statische Seite, Kategorie-Archiv und einzigen Beitrag.

    Forum: Themes
    Als Antwort auf: Tesseract Theme Widget in Header

    Perhaps you might try Edi solution on your site before you make a decision, my example is rather crude to say the least.

    Where exactly would I have to paste the code?

    You could try insert this code into the child theme header.php file:

    Other than that it’s the same answer as Edi gave.

    Es kommt darauf an, wo Du im Header den Sprachenumschalter positionieren willst.

    I couldn’t find the tesseract theme in wordpress.org repository , or I would have a look and attempt further guidance. If you want to post here the contents of file header.php, enclosed in backticks, I will …

    You are welcome, Seems that is exactly what I do with the following code, adapted from Mr Tadlock’s:

    <?php
    /**
     * Plugin Name: Tadlock User Meta for Cardiogolf
     * Description: show the additional meta fields on user profile and allow editing on that page by admin
     * Version: 1.0
     * Author: Martin
     */
    
    // show the fields
    
    add_action( 'show_user_profile', 'my_show_extra_profile_fields' );
    add_action( 'edit_user_profile', 'my_show_extra_profile_fields' );
    
    function my_show_extra_profile_fields( $user ) { ?>
    
    	<h3>Extra profile information</h3>
    
    	<table class="form-table">
    
    		<tr>
    			<th><label for="amount_last_pmt">Amount Last Payment</label></th>
    
    			<td>
    				<input type="text" name="amount_last_pmt" id="amount_last_pmt" value="<?php echo esc_attr( get_the_author_meta( 'amount_last_pmt', $user->ID ) ); ?>" class="regular-text" /><br />
    				<span class="description">The amount of the last payment. (Should be read-only here for the user.)</span>
    			</td>
    		</tr>
    
    		<tr>
    			<th><label for="date_last_pmt">Date Last Payment via time(now)</label></th>
    
    			<td>
    				<input type="text" name="date_last_pmt" id="date_last_pmt" value="<?php echo esc_attr( get_the_author_meta( 'date_last_pmt', $user->ID ) ); ?>" class="regular-text" /><br />
    				<span class="description">The date of the last payment via time(); . (Should be read-only here for the user.)</span>
    			</td>
    		</tr>
    
    		<tr>
    			<th><label for="entry_pmt_date">Date Last Payment via $entry</label></th>
    
    			<td>
    				<input type="text" name="entry_pmt_date" id="entry_pmt_date" value="<?php echo esc_attr( get_the_author_meta( 'entry_pmt_date', $user->ID ) ); ?>" class="regular-text" /><br />
    				<span class="description">The entry's payment date. (Should be read-only here for the user.)</span>
    			</td>
    		</tr>
    
    	</table>
    <?php }
    
    // save the updated fields
    
     add_action( 'personal_options_update', 'my_save_extra_profile_fields' );
     add_action( 'edit_user_profile_update', 'my_save_extra_profile_fields' );
    
    function my_save_extra_profile_fields( $user_id ) {
    
    	if ( !current_user_can( 'edit_user', $user_id ) )
    		return false;
    
    	// Copy and paste this line for additional fields. Make sure to change 'twitter' to the field ID.
    	update_usermeta( $user_id, 'amount_last_pmt', $_POST['amount_last_pmt'] );
    	update_usermeta( $user_id, 'date_last_pmt', $_POST['date_last_pmt'] );
    	update_usermeta( $user_id, 'entry_pmt_date', $_POST['entry_pmt_date'] );
    }
    
    ?>

    Forum: Themes
    Als Antwort auf: Tesseract Theme Widget in Header

    I believe the answer from Edi is the most simple. From within Dashboard > Appearance> Menus … You should be able to add the language switcher as a menu item into your primary menu, usually located in the header.

    For over-simplified example try this link: http://wpmulti.org/wpmulti-is-an-acronym/ … And then click „Deutsch“

    For a more robust solution, the answer from torsten is perhaps an improvement beyond my first answer. You would however likely need to understand how to create and edit the child theme file header.php, by studying the reference documents provided by Torsten.

    You could try insert this code into the child theme header.php file:
    ________________

    Ich glaube, die Antwort von Edi ist die einfachste. Aus Dashboards> Darstellung> Menüs … Sie sollten in der Lage, um den Sprachumschalter als Menüpunkt in Ihrem primären Menü, in der Regel in der Kopfzeile befindet hinzuzufügen.

    Für stark vereinfachte Beispiel versuchen Sie diesen Link: http://wpmulti.org/wpmulti-is-an-acronym/ … Und dann klicken Sie auf „Deutsch“

    Für eine robuste Lösung, ist die Antwort von torsten vielleicht eine Verbesserung über meine erste Antwort. Sie würden aber wahrscheinlich benötigen, um zu verstehen, wie das Erstellen und bearbeiten Sie die Datei header.php Kind Thema, durch das Studium der Referenzdokumente von Torsten bereitgestellt.

    Sie könnten versuchen, diesen Code einfügen in das Kind Thema header.php Datei:

    <?php // outputs a list of languages names ?>
    <ul><?php pll_the_languages(); ?></ul>
    
    <?php // outputs a flags list (without languages names) ?>
    <ul><?php pll_the_languages(array('show_flags'=>1,'show_names'=>0)); ?></ul>
    
    <?php // outputs a dropdown list of languages names ?>
    <?php pll_the_languages(array('dropdown'=>1));  ?>
    Forum: Themes
    Als Antwort auf: Tesseract Theme Widget in Header

    Danke Torsten @zodiac1978, mein srechtlich Deutsch ube ich, mitt Hilfe dem https://translate.google.com/. Und vieleicht auch den OP hilfen. Child-Theme kenne ich, habe’s hier vergassen. Ich werde polylang studieren.

    Forum: Themes
    Als Antwort auf: Tesseract Theme Widget in Header

    Hello,

    I have the Tesseract Theme.
    I would now like to make a bilingual page. For this, the language switcher widget is to be integrated in the header of Polylang.
    There, however, not a widget is provided in my Theme. How do I get there now easiest a language switcher to go?
    On Theme rumschreiben that I can integrate a widget?
    Or change the theme so that I have two buttons in the header insert (German / English), which then send their quasi value Polylang?
    Or another solution? How can I implement it?

    Thank you ever!
    greeting
    Jannis

    First you should register a new widget-area, into which you then can insert the widget. Typically this would be accomplished within your theme functions.php file. Or via a plugin you write yourself would be better.

    Then you would create a header-sidebar to display the widget-area already registered and containing your widget. Typically this would be within your theme header.php file.

    Zuerst sollten Sie ein neues Widget-Bereich, in den Sie dann das Widget einfügen registrieren. Typischerweise würde dies in Ihrem Thema functions.php-Datei durchgeführt werden. Oder über ein Plugin schreiben Sie selbst wäre besser.

    Dann können Sie eine Kopfleiste, die bereits registriert Widget-Bereich und mit Ihrem Widget angezeigt schaffen würde. Typischerweise würde dies in Ihrem Thema header.php Datei sein.

    Forum: Themes
    Als Antwort auf: Themes – TheStore,
    Thread-Starter Martin Robbins

    (@santeven)

    Hello,

    I installed me short on my blog http://your-foto.de/ the Theme „TheStore“.

    Now I want that only a section of the article is displayed with image on the home page, not the entire article. Is this at all possible ??

    Yes it is possible in general. Only a section of the article would be the_excerpt(). One image would be post_thumbnail()

    Ja, es ist in der Regel möglich. Nur ein Abschnitt des Artikels würde the_excerpt() werden. Ein Bild wäre post_thumbnail()

    I want to show on the profile page of a user Only the fields that correspond to this role. Although there are many similar plugins for visibility of fields and roles, but not for this particular case – at least I think that’s correct not. Is there something?

    Result should be that on my side a paying member you can view more information than free users.

    Would großrtig if someone could help me this!
    VG, Matthias

    For this kind of functionality in the absence of buddypress I use Justin Tadlock’s Members plugin https://wordpress.org/plugins/members/ … His members plugin is the bare minimum essentials and no-fluff. Everything he writes is top-notch. There might be other options that are less flexible yet more simple for someone who doesn’t understand WordPress coding concepts well enough.

    Für diese Art von Funktionalität in der Abwesenheit von Buddypress verwende ich Mitglieder Justin Tadlock die Plugin https://wordpress.org/plugins/members/ … Seine Mitglieder Plugin ist das absolute Minimum Wesentliche und nicht-Flaum. Alles, was er schreibt, ist erstklassig. Möglicherweise gibt es andere Optionen, die weniger flexibel noch einfacher für jemanden, der WordPress-Codierung Konzepte gut genug, nicht versteht, sind sein.

Ansicht von 9 Antworten - 1 bis 9 (von insgesamt 9)