Forum Replies Created
-
AuthorPosts
-
Now i am a bit confused again.
The code you provided said: “If its not a single than use a “div” instead a h1″?
Is that correct?
My code now says: “If its a single or a category than use h1″
Correct?Best regards Martin
Back again:
Since we need a H1 ( a correct SEO needs always one H1 per page) on every page and not only on single-blog-posts we had to edit the code to:if ( is_single() && is_category() ) { $args['link'] = get_permalink($id); $args['heading'] = 'div'; } return $args; }
Can you pllease confirm that it is correct?
And why did you suggest this: “if(!is_single())”
Doesnt that “! is_single” mean “not equal as” ?Regards Martin
Hi Yigit
thanks for helping – this worked so far.Can you please leave that thread open for some days until we are sure that its really solved?
Thanx again and have a nice day
Kind regards
MartinBACK AGAIN
Before i become crazy about that ……
There are so many strange dependencys (H1 in title depending from “Don’t display image on single post” / H1 in Content depending from using ALB or not / H1 in title depending from using ALB or not….) that i have no other idea than to suspect a huge bug.
This is so strange that i cant decide where to beginMaybe its better to start from scratch.
What i want:
1: using ALB
2: No H1 in Content
3: H1 in titleWhat do we already got in functions.php
<?php add_filter('avf_title_args', 'change_title_tag', 10, 2); function change_title_tag($args,$id) { $args['link'] = get_permalink($id); $args['heading'] = 'div'; return $args; } add_filter('avf_title_args', 'fix_single_post_title', 10, 2); function fix_single_post_title($args,$id) { if ( $args['title'] == 'Blog - Die aktuellsten Neuigkeiten' ) { $args['title'] = get_the_title($id); $args['link'] = get_permalink($id); $args['heading'] = 'h1'; } return $args; } //$avia_config['imgSize']['square-custom'] = array('width'=>300, 'height'=>300); // small image for blogs //$avia_config['imgSize']['square2'] = array('width'=>400, 'height'=>400); // small image for blogs function enqueue_parent_theme_style() { wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' ); } add_action( 'wp_enqueue_scripts', 'enqueue_parent_theme_style'); function theme_name_scripts() { wp_enqueue_style( 'style-name', get_stylesheet_uri() ); } add_action( 'wp_enqueue_scripts', 'theme_name_scripts' ); /* Activate Avia debug mode */ add_action('avia_builder_mode', "builder_set_debug"); function builder_set_debug() { return "debug"; } /* excerpt lenght */ add_filter('avf_postgrid_excerpt_length','avia_change_postgrid_excerpt_length', 10, 1); function avia_change_postgrid_excerpt_length($length) { $length = 150; return $length; } //removes comments from Combo Widget // class avia_combo_widget extends WP_Widget { function avia_combo_widget() { //Constructor $widget_ops = array('classname' => 'avia_combo_widget', 'description' => 'A widget that displays your popular posts, recent posts, recent comments and a tagcloud' ); $this->WP_Widget( 'avia_combo_widget', THEMENAME.' Combo Widget', $widget_ops ); } function widget($args, $instance) { // prints the widget extract($args, EXTR_SKIP); $posts = empty($instance['count']) ? 4 : $instance['count']; echo $before_widget; echo "<div class='tabcontainer border_tabs top_tab tab_initial_open tab_initial_open__1'>"; echo '<div class="tab first_tab active_tab widget_tab_popular"><span>'.__('Popular', 'avia_framework').'</span></div>'; echo "<div class='tab_content active_tab_content'>"; avia_get_post_list('cat=&orderby=comment_count&posts_per_page='.$posts); echo "</div>"; echo '<div class="tab widget_tab_recent"><span>'.__('Recent', 'avia_framework').'</span></div>'; echo "<div class='tab_content'>"; avia_get_post_list('showposts='. $posts .'&orderby=post_date&order=desc'); echo "</div>"; echo '<div class="tab last_tab widget_tab_tags"><span>'.__('Tags', 'avia_framework').'</span></div>'; echo "<div class='tab_content tagcloud'>"; wp_tag_cloud('smallest=12&largest=12&unit=px'); echo "</div>"; echo "</div>"; echo $after_widget; } function update($new_instance, $old_instance) { $instance = $old_instance; foreach($new_instance as $key=>$value) { $instance[$key] = strip_tags($new_instance[$key]); } return $instance; } function form($instance) { //widgetform in backend $instance = wp_parse_args( (array) $instance, array('count' => 4) ); if(!is_numeric($instance['count'])) $instance['count'] = 4; ?> <p> <label for="<?php echo $this->get_field_id('count'); ?>">Number of posts you want to display: <input class="widefat" id="<?php echo $this->get_field_id('count'); ?>" name="<?php echo $this->get_field_name('count'); ?>" type="text" value="<?php echo esc_attr($instance['count']); ?>" /></label></p> <?php } } add_action( 'ava_after_main_menu', 'enfold_customization_header_widget_area' ); function enfold_customization_header_widget_area() { dynamic_sidebar( 'header' ); } add_action( 'wp_enqueue_scripts', 'enqueue_font_awesome' ); function enqueue_font_awesome() { wp_enqueue_style( 'font-awesome', '//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css' ); } add_filter('avf_which_archive_output','avf_change_which_archive', 10, 3); function avf_change_which_archive($output) { if(is_category()) { $output = single_cat_title('',false); } return $output; }
Please help me not to end up in a psychward and let me know how i can achieve that (which by the way should not be that complicate, right?)
OK – i got it but i have to say that this is something you should REALLY write down somewhere:
If you dont use ALB – the posttitle is printed automatically on top of the post
If you use ALB – it doesnt.This behaviour might be by purpose – but nevertheless ist confusing and not logic.
It needs a lot of time to figure that outand another weird thing:
If i change to postformat from “standard” to “link” (just for a test) ….the H1 changes to something completly different.One more: The issue does not come from our childtheme.
We emptied the functions.php from our child-theme to check but the issue is still there.Where does this weird inconsistence come from?
Hi
probably in relation to this issue we found another thing that is realy strange.
Look at these two posts please:
1: http://www.trauerkarten-druck.com/magazin/sprueche-fuer-trauerkarten/
2: http://www.trauerkarten-druck.com/magazin/trauersprueche-fuer-beileidskarten/
In Number 2 you see a H1 (“Trauersprüche für Beileidskarten”) just as the beginning of the posts content
Where does this line come from??? Its not in the content!!!
Other posts do not have a H1 at this place.That really looks like a bug.
Regards MartinSorry Victoria – but this obvious is a bug so it should be in your companys responsability to fix that.
Here is the code again:
Please put your attribute on the place you think its correct and repost it here.
Thanx Max[av_contact email='kontakt@.........de' title='Mustermappe bestellen' button='Senden' on_send='' sent='Ihre Nachricht wurde versendet!' link='manually,https://' subject='Mustermappe wurde bestellt' autorespond='' captcha='' hide_labels='aviaTBhide_labels' form_align='' color='' custom_class=''] [av_contact_field label='Firma' type='text' options='' check='' width='' multi_select=''][/av_contact_field] [av_contact_field label='Name' type='text' options='' check='is_empty' width='' multi_select=''][/av_contact_field] [av_contact_field label='Straße, Hausnummer' type='text' options='' check='is_empty' width='' multi_select=''][/av_contact_field] [av_contact_field label='PLZ, Ort' type='text' options='' check='is_empty' width='' multi_select=''][/av_contact_field] [av_contact_field label='E-Mail' type='text' options='' check='is_email' width='' multi_select=''][/av_contact_field] [av_contact_field label='Telefon' type='text' options='' check='is_phone' width='' multi_select=''][/av_contact_field] [av_contact_field label='Betreff' type='text' options='' check='' width='' multi_select=''][/av_contact_field] [av_contact_field label='Nachricht' type='text' options='' check='' width='' multi_select=''][/av_contact_field] [av_contact_field label='Welche Mappe darf es sein?' type='select' disabled='disabled' options='Kindergartenfotografie, Grundschulfotografie, Schulfotografie, Abschlussklassen' multi_select='aviaTBaviaTBmulti_select' check='' width=''][/av_contact_field] [/av_contact]
Hi Victoria.
1: there is no need to go to text mode since we can access the shortcode cause we activated the Avia debug mode via functions.php
2: None of the versions we tried worked. Can you be a little more precise and let us know where exactly the option should be and how it has to be written (this seem not correct to me:disabled=disabled ?Kind regards
Max3 days for simple answer?
Or is it so difficult – that precheck-thing?it seems that we solved it
finaly i need to know what i have to type in for “check=”” if i want to make the checkbox beeing “pre-checked”.
And can you please remove the shortcode from the private field so that post doesnt look so crashed?
So..our serveradmin checked the mailserver and the Apache and its clear that the issue is caused by the form.
1: Your shortcode was wrong (label=’Telefon’ type=’text’ options=” check=’is_number’)
It has to be: label=’Telefon’ type=’text’ options=” check=’is_phone’2: Now it works if the checkbox is checked but it does not work if the checkbox is not checked
Actual settings: label=’Gratis Mustermappe bestellen’ type=’checkbox’ options=” check=” width=
If you send, all labels get a red border for a short moment and its sended anyway.
This is a very strange behaviour. In the private field you find the complete actual shortcode
3: Checkbox
The checkbos should be “prechecked”, but not mandatory- This reply was modified 8 years, 4 months ago by Josue.
Hi Yigit
sorry for the bad news but it does not work.Its worse than before.
Now the send button only works if you check the checkbox.
If you dont check the box the button does not react at all.
If you check the box the “send”-button reacts, but there is no success-message and no mail is sendedMax
and by the way…can you please clear that issue too?
Hallo Yigit
in the private field you find a downloadlink.
It contains:
– Video of the settings of the page
– txt-file with all the content used on that page
– themesettings-export-file
-functions.php of our child-themeSo you probably got everything you need to solve the issue
Kind regards Max
Hello Yigit
we are a company with more that 200 employees and i dont have the capability to create a new account.
I would have to ask our server-admin and unfortunately we have a strict order not to give admin-access to other people than our server-admin.
I cant bypass that without violate my working-contract.I can publish a screencast somewhere on Google-drive or i can send you the code of the site or screenshots or if wanted the whole database but i really cant give you access
Max
Hi, all plugins deactivated (Wordfence / InfiniteWP – Client & Yoast SEO) .
Contactform still not sending.And by the way…this forumthread is absolutely foobar. (black und the design is 100% crashed on our end)
Hi
can you please provide us with a smarter solution then hide the logo by CSS?Regards Meg
- This reply was modified 8 years, 6 months ago by pixopolis2222.
Sorry Yigit, i didnt understand your answer
I guess there was a language / misunderstanding problem
my question was:
Can all PHP files which are located in ../enfold/ be used like this?regards martin
Hi Yigit
tnanx. WorksGeneral question:
Can all PHP files which are located in ../enfold/ be used like this?
Just copy in my child theme and edit them??But it can not be done with files which are located deeper that /enfold/ (eg /enfold/includes/) . Is that correct too?
regards Martin
Hi Yigit
sorry but taking a broom and sweep n issue under our bed is not a “solution” we want to use too often.Where do the double h1 icome from?
It was a suggestion of one of your collegues
He offered us this code (i guess you see what it is about)add_filter('avf_title_args', 'fix_single_post_title', 10, 2); function fix_single_post_title($args,$id) { if ( $args['title'] == 'Blog - Die aktuellsten Neuigkeiten' ) { $args['title'] = get_the_title($id); $args['link'] = get_permalink($id); $args['heading'] = 'h1'; } return $args; }
Questions
1: How has the argument to be like if we want just a <span> instead of an <h1> ( $args[‘heading’] = ‘h1’; —> …? ) ??
2: How should the code be like if we want to call the content of a certain custom field instead of “get_the_title($id);” ?Regards Martin
Yes, it look like this at our end too.
But how could we change….
-backgroundcolor
-borderFor all these 15 other licenses / website i must be able to change these values
And it is really difficult at the moment
i am not a CSS dumbass but this seems tricky so that i am not sure if there si somethin wrong with the whole constructregards martin
Hello Yigit
its a long way to Tiparrary ;-)
Thanx and almost donePosition looks good but its still strange difficult to set borders / backgrounds
If i want to set a background i have to set it für both spans because a background für #text-5 does not work
Also it does not work if i want to set a border for #text-5Can you please help us out with that?
regards martin
Hey
instead or in addition to what Andy provided?Regards martin
Sorry , aber wie deutlich soll ich es denn noch machen?
Ich habe Dir doch schon EXAKT mit Photoshop “aufgemalt” was ich will.
DAS :
https://drive.google.com/open?id=0BzF3a9LXV99JYWtpRnhidVlnOGs
Der Button hat einen ABSTAND nach oben und untenNa gut. Dann also nochmal mit noch mehr Pfeilen
https://drive.google.com/open?id=0BzF3a9LXV99JRURHaVpmbllPVEUMartin
Hallo Andy ,
leider neinBitte schau Dir doch nochmal die “Skizze” an:
https://drive.google.com/open?id=0BzF3a9LXV99JYWtpRnhidVlnOGs
Man kann hier ganz eindeutig erkennen das wir einen Abstand naoch oben und nach unten haben wollen
Dazu muss ich entweder dem DIV eine Höhe mitgeben (geht aber anscheinend nicht) oder mit Margins arbeiten (geht anscheinend auch nicht)Mit Abstand: (Das möchte ich erreichen)
https://drive.google.com/open?id=0BzF3a9LXV99JYWtpRnhidVlnOGs
Ohne Abstand(Das möchte ich nicht)
https://drive.google.com/open?id=0BzF3a9LXV99JSGl4QkI1Y3drNGcMöglicherweise ist der ganze von Rikard vorgeschlagene Weg falsch?
Vielleicht hätten wir doch lieber dieen Weg einschlagen und dann einen anderen Hook nutzen sollen?add_filter('avf_logo_subtext', 'logo_addition'); function logo_addition($logoplus) { $logoplus .= "<div id="button"> test </div>"; return $logoplus; }
Hallo Andy,
sorry, aber das ist immer noch nicht richtig
Jetzt ist zum Beispiel der Bereich mit der breadcrumb “verschwunden” und auch der Button ist weder so positioniert wie ganz zu Anfang
https://drive.google.com/open?id=0BzF3a9LXV99Jd0FLX2c2T3VUNmMBitte schau Dir doch nochmal die “Skizze” an:
https://drive.google.com/open?id=0BzF3a9LXV99JYWtpRnhidVlnOGs
Man kann hier ganz eindeutig erkennen das wir einen Abstand naoch oben und nach unten haben wollen
Dazu muss ich entweder dem DIV eine Höhe mitgeben (geht aber anscheinend nicht) oder mit Margins arbeiten (geht anscheinend auch nicht)Das CSS hab ich vorübergehend ins Quick-CSS gepackt, möchte Dich aber bitten mir zu sagen wenn Du noch andere stellen änderst da ich das als Basis für die anderen 15 Websites / Lizenzen nehmen muss
Gruß MartinDas ist was kriesi selbst dazu sagte und wir haben den Umbau auf Enfold nur deswegen vollzogen:
” the Customization wouldn’t be too hard I guess, since all you need to do is to inject a html button into the header which can be done via one of the WordPress Hooks in file includes/herlper-main-menu.php. All you need to do then is to style the button to your likings and position it properly. This is something we can definitley help with once we know which header and layout setting you are going for ”
Es wäre schade wnn ich jetzt meinen Boss mitteilen müsste das wir wieder zu Avada wechseln und doch nicht alle 16 unserer Websites von Avada auf Enfold umbauen können.
http://themeforest.net/comments/12988930Es ist doch offensichtlich was wir wollen.
Einen Button der rechts neben dem Menu ausgegeben wird und nach oben und unten einen Abstand hat.
Das sollte dann jetzt doch alle Unklarheiten beseitigen:
https://drive.google.com/open?id=0BzF3a9LXV99JYWtpRnhidVlnOGssorry aber das funktioniert nicht
Bitte schau Dir doch mal den Screenshot dessen an was wir erreichen wollen:
https://drive.google.com/open?id=0BzF3a9LXV99JT2FPc3VpYzI1eEUDazu muss ich irgendwie eine Höhe definieren können und das geht nicht
Auch die Positionierung erscheint mir nicht korrekt denn wir wollen den Button ja rechts aussen.Hier der klägliche Versuch unsererseits:
right: 50px !important;
top: -55px !important;
width: 70px;
height: 50px !important;for a CSS thing?
OK. -
AuthorPosts