Ach so....ich muss das dort einfach nur löschen!! Wahnsinn...jetzt klappt es genau so wie ich es haben wollte. Vielen, vielen Dank für deine Mühe!
Beiträge von Lexxy2010
-
-
Puh....ich glaube das ist mir fast zu hoch. Leider habe ich so gut wie gar keine Ahnung von PHP oder CSS. Habe mich schon wie ein Held gefühlt als ich den Header in Styles.css erfolgreich bearbeitet hatte :-)
In den Mystique-Optionen im Backend kann man leider nur Tags, Meta, Empfehlen, Über den Autor, Link drucken und verwandte Beiträge ausblenden, aber nicht den Titel. Doch es gibt noch die Option "benutzerdefiniertes CSS". Kann man dort "irgendwas" eingeben um den Titel auszublenden?
-
Hallo,
erst mal danke für deine Antwort. Ich hatte ein neues Thema erstellt da der präfix hier falsch war. Sorry wegen dem Doppelpost! Ich arbeite mit WP 3.0 ......deswegen.
Zum Thema:
In der single.php habe ich folgendes gefunden:
PHP<?php if (!get_post_meta($post->ID, 'hide_title', true)): ?><h1 class="title"><?php the_title(); ?></h1><?php endif; ?>Zur Info: Ich möchte gerne den Titel nur auf den Seiten, nicht in Artikeln ausblenden.
-
Wie kann ich die Seiten-Titel im Mystique Theme 2.4.2 von digitalnature im Content ausblenden? Habe schon in der single.php und page.php geschaut, doch nichts gefunden. Eure Hilfe wäre wirklich nett......vielen Dank im Voraus!
page.php:
PHP
Alles anzeigen<?php /* Mystique/digitalnature */ get_header(); ?> <!-- main content: primary + sidebar(s) --> <div id="main"> <div id="main-inside" class="clear-block"> <!-- primary content --> <div id="primary-content"> <div class="blocks"> <?php do_action('mystique_before_primary'); ?> <?php if (have_posts()): while (have_posts()): the_post(); mystique_page(); endwhile; endif; comments_template(); ?> <?php do_action('mystique_after_primary'); ?> </div> </div> <!-- /primary content --> <?php get_sidebar(); ?> </div> </div> <!-- /main content --> <?php get_footer(); ?>single.php :
PHP
Alles anzeigen<?php /* Mystique/digitalnature */ get_header(); ?> <!-- main content: primary + sidebar(s) --> <div id="main"> <div id="main-inside" class="clear-block"> <!-- primary content --> <div id="primary-content"> <div class="blocks"> <?php do_action('mystique_before_primary'); ?> <?php if (have_posts()) : while (have_posts()): the_post(); ?> <div class="single-navigation clear-block"> <div class="alignleft"><?php previous_post_link('« %link') ?></div> <div class="alignright"><?php next_post_link('%link »') ?></div> </div> <!-- post --> <div id="post-<?php the_ID(); ?>" class="<?php mystique_post_class('single'); ?>"> <?php if (!get_post_meta($post->ID, 'hide_title', true)): ?><h1 class="title"><?php the_title(); ?></h1><?php endif; ?> <div class="post-content clear-block"> <?php the_content(__('More >', 'mystique')); ?> <?php if(function_exists('wp_print')): ?><div class="alignright"><?php print_link(); ?></div><?php endif; ?> </div> <?php wp_link_pages(array('before' => '<div class="page-navigation"><p><strong> '.__("Pages:","mystique").' </strong>', 'after' => '</p></div>', 'next_or_number' => 'number')); ?> <?php $settings = get_option('mystique'); $post_tags = get_the_tags(); if ($post_tags && $settings['post_single_tags']): ?> <div class="post-tags"> <?php $tags = array(); $i = 0; foreach($post_tags as $tag): $tags[$i] .= '<a href="'.get_tag_link($tag->term_id).'" rel="tag" title="'.sprintf(__('%1$s (%2$s topics)'),$tag->name,$tag->count).'">'.$tag->name.'</a>'; $i++; endforeach; echo implode(', ',$tags); ?> </div> <?php endif; ?> <?php if($settings['post_single_author']): ?> <div class="about_the_author clear-block"> <div class="avatar"> <a href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>" title="<?php echo get_the_author(); ?>"><?php echo mystique_get_avatar(get_the_author_meta('email'), 80); ?></a> </div> <h3><?php _e("About the author","mystique"); ?></h3> <p><?php the_author_meta('description'); ?></p> </div> <?php endif; ?> </div> <!-- /post --> <?php if($settings['post_single_meta'] || $settings['post_single_share'] || $settings['post_single_print']): ?> <table class="post-meta"> <tr> <?php if($settings['post_single_share'] && $settings['jquery']): ?><td><?php mystique_shareThis(); ?></td><?php endif; ?> <?php if($settings['post_single_print'] && $settings['jquery']): ?><td><a class="control print"><?php _e("Print article", "mystique"); ?></a> </td><?php endif; ?> <?php if($settings["post_single_meta"]): ?> <td class="details"> <?php printf(__('This entry was posted by %1$s on %2$s at %3$s, and is filed under %4$s. Follow any responses to this post through %5$s.', 'mystique'), '<a href="'. get_author_posts_url(get_the_author_meta('ID')) .'" title="'. sprintf(__("Posts by %s","mystique"), attribute_escape(get_the_author())).' ">'. get_the_author() .'</a>', get_the_time(get_option('date_format')),get_the_time(get_option('time_format')), get_the_category_list(', '), '<a href="'.get_post_comments_feed_link($post->ID).'" title="RSS 2.0">RSS 2.0</a>');echo ' '; if (('open' == $post-> comment_status) && ('open' == $post->ping_status)): // Both Comments and Pings are open printf(__('You can <a%1$s>leave a response</a> or <a%2$s>trackback</a> from your own site.', 'mystique'), ' href="#respond"',' href="'.trackback_url('',false).'" rel="trackback"'); elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)): // Only Pings are Open printf(__('Responses are currently closed, but you can <a%1$s>trackback</a> from your own site.', 'mystique'), ' href="'.trackback_url('',false).'" rel="trackback"'); elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)): // Comments are open, Pings are not _e('You can skip to the end and leave a response. Pinging is currently not allowed.','mystique'); elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)): // Neither Comments, nor Pings are open _e('Both comments and pings are currently closed.','mystique'); endif; edit_post_link(__('Edit this entry', 'mystique')); ?> </td> <?php endif; ?> </tr> </table> <?php endif; ?> <?php endwhile; endif; ?> <?php comments_template(); ?> <?php do_action('mystique_after_primary'); ?> </div> </div> <!-- /primary content --> <?php get_sidebar(); ?> </div> </div> <!-- /main content --> <?php get_footer(); ?> -
Leider funktioniert diese Lösung nicht mehr bei WP 3.0 / Mystique 2.4.2.
Hat jemand eine idee wie man jetzt die Seiten-Titel aus dem Content ausblenden kann? -
Habe meinen Post gelöscht, weil falscher Präfix!
-
Oh Mann.....ich glaube ich schaue zu viel Fussball :???:
Es lag natürlich an dem fehlenden "http://". Also vielen Dank für eure Hilfe und entschuldigt bitte meine Blindheit!
Gruss Lexxy
-
Oh....Sorry, mein Fehler! :oops:
Es soll natürlich "externerLink.de" heißen und es steht auch so dort.
In der HTML Ansicht sieht´s also so aus:
<a href="http://www.externerlink.de">
-
Gute Idee....da bin ich gar nicht drauf gekommen mal reinzuschauen.
In der HTML Ansicht sieht´s so aus:<a href="http://www.meineseite.de">
Müsste wohl richtig sein, oder?
-
Hallo,
nun wurde mir in diesem tollen Forum allein nur durch das Mitlesen schon so oft geholfen. Dieses mal finde ich aber mein Problem selbst hier und mit Hilfe diverser SuMa´s nicht und muss selber mal nachfragen. Ich hoffe ich bin hier auch richtig.
Mein Problem:
Ich habe heute WP neu installiert (2.9.2). Alles ganz frisch. Webspace und Datenbank auch. Dann habe ich ganz normal einen Artikel geschrieben der ein Bild enthält. Dieses Bild soll einen Link erhalten der auf eine externe Seite verweist. Also habe ich in der Eigenschaften-Maske des Bildes, in der Zeile "URL" die Link-Adresse eingegeben (http://www.externerLink.de) und alles gespeichert.
Doch WP macht daraus folgenden Link: http://www.MeineSeite.de/www.externerLink.de
Dies führt natürlich zum 404. Wenn ich nochmal in die Eigenschaften-Maske des Bildes schaue, dann steht bei "URL" immer noch nur http://www.externerLink.de ! Das Selbe habe ich mit selben Ergebnis mit Text/Hyperlinks probiert. Liegt es vielleicht an der .htaccess ?
Für eure Antworten bin ich euch jetzt schon dankbar!!!Gruß Lexxy